return no results with empty search string (#206)
* return no results with empty search string * update * bump version
This commit is contained in:
parent
b8f52670ce
commit
6536401c8c
3 changed files with 461 additions and 454 deletions
|
|
@ -66,6 +66,12 @@ async def search(
|
|||
bfs_origin_node_uuids: list[str] | None = None,
|
||||
) -> SearchResults:
|
||||
start = time()
|
||||
if query.strip() == '':
|
||||
return SearchResults(
|
||||
edges=[],
|
||||
nodes=[],
|
||||
communities=[],
|
||||
)
|
||||
query_vector = await embedder.create(input_data=[query.replace('\n', ' ')])
|
||||
|
||||
# if group_ids is empty, set it to None
|
||||
|
|
|
|||
905
poetry.lock
generated
905
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "graphiti-core"
|
||||
version = "0.3.20"
|
||||
version = "0.3.21"
|
||||
description = "A temporal graph building library"
|
||||
authors = [
|
||||
"Paul Paliychuk <paul@getzep.com>",
|
||||
|
|
@ -17,7 +17,7 @@ python = "^3.10"
|
|||
pydantic = "^2.8.2"
|
||||
neo4j = "^5.23.0"
|
||||
diskcache = "^5.6.3"
|
||||
openai = "^1.52.2"
|
||||
openai = "^1.53.0"
|
||||
tenacity = "<9.0.0"
|
||||
numpy = ">=1.0.0"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue