Find answers from the community

Updated 3 months ago

I see that `TextToCypherRetriever` has a

I see that TextToCypherRetriever has a slot for a cypher_validator and I'm looking for an example to crib from
L
g
5 comments
heh I kind of put that there as a future TODO

But the idea is, cypher_validator=validate_fn where validate_fn takes in a cypher query and returns a validated/corrected cypher query
Attachment
image.png
I know neo4j had this cypher validation competition. They added the validator to langchain, been meaning to try and copy that to llama-index lol
well, I do also run langchain
I'm also seeing that, depending on the question, that the model I'm using will return an empty query entirely sometimes
oh interesting πŸ€” Passing in this cyhpher_validator would be a good way to catch empty queries, and replace with some default query
Add a reply
Sign up and join the conversation on Discord