Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
I see that `TextToCypherRetriever` has a
I see that `TextToCypherRetriever` has a
Inactive
0
Follow
g
gavindoughtie
6 months ago
Β·
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
Share
Open in Discord
L
Logan M
6 months ago
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
L
Logan M
6 months ago
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
g
gavindoughtie
6 months ago
well, I
do
also run langchain
g
gavindoughtie
6 months ago
I'm also seeing that, depending on the question, that the model I'm using will return an empty query entirely sometimes
L
Logan M
6 months ago
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
Join on Discord