Neo4j is an open-source graph database with integrated support for vector similarity searchIt supports:
Neo4jVector
).
See the installation instruction.
OpenAIEmbeddings
so we have to get the OpenAI API Key.
from_existing_graph
method. This method pulls relevant text information from the database, and calculates and stores the text embeddings back to the database.
$eq: Equal
$ne: Not Equal
$lt: Less than
$lte: Less than or equal
$gt: Greater than
$gte: Greater than or equal
$in: In a list of values
$nin: Not in a list of values
$between: Between two values
$like: Text contains value
$ilike: lowered text contains value
OR
operator between filters
text
: Union[str, Dict] = Value used to populate page_content
of a documentscore
: Float = Similarity scoremetadata
: Dict = Additional metadata of a documentembedding
as a dictionary to text
column,
Neo4jVector
as a retriever.
RetrievalQAWithSourcesChain
, which does the lookup of the documents from an Index.