Open liadlevy-pando opened 3 weeks ago
Have you tried providing a prompt to the GraphCypherQAChain with specific instructions to not return the embedding property?
There are some tips in this blog post
@martinohanlon It works but sometimes it doesn't follow the instructions. Better to have a way to filter out the properties.
Also there are properties that we don't want to send as context I think it could be a good and practical feature.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
When employing the GraphCypherQAChain.from_llm function, it generates a Cypher query that outputs all properties, including embeddings. Currently, there is no functionality to selectively include or exclude specific properties from the documents, which results in utilizing the entire context window.
System Info
Packages
langchain-community==0.2.2 neo4j==5.18.0/5.19.0/5.20.0 langchain==0.2.2 langchain-core==0.2.4 langchain-openai==0.1.