You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd like to use the pre-filtering feature. I'm using VectorRetriever. pre-filters
But following error occurred.
neo4j.exceptions.CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Invalid input 'NOT': expected an expression or ')' (line 1, column 131 (offset: 130))
"MATCH (node:`Chunk`) WHERE node.`embedding` IS NOT NULL AND size(node.`embedding`) = toInteger($embedding_dimension) AND (node.id NOT IN $param_0) WITH node, vector.similarity.cosine(node.`embedding`, $query_vector) AS score ORDER BY score DESC LIMIT $top_k RETURN node {.id, .text, .content_id} AS node, labels(node) AS nodeLabels, elementId(node) AS elementId, elementId(node) AS id, score"
My implementation is:
filters={
"id": {
"$nin": docIds# list of strings
}
retriever_result=retriever.search(query_text=query_text, filters=filters)
I think WHERE NOT thing IN list not WHERE thing NOT IN list is the correct syntax.
It seems that the current version of _single_condition_cypher() function in filters.py can't handle this.
Hi, I'd like to use the pre-filtering feature. I'm using
VectorRetriever
.pre-filters
But following error occurred.
My implementation is:
I think
WHERE NOT thing IN list
notWHERE thing NOT IN list
is the correct syntax.It seems that the current version of
_single_condition_cypher()
function infilters.py
can't handle this.The text was updated successfully, but these errors were encountered: