Calculate maximal marginal relevance.
Convert a dictionary to a YAML-like string without using external libraries.
Parameters:
Returns:
Construct a metadata filter by directly injecting the filter values into the query.
Processes a nested list of entity data to extract information about labels, entity types, properties, index types, and index details (if applicable).
FalkorDB wrapper for graph operations.
Security note: Make sure that the database connection uses credentials that are narrowly-scoped to only include necessary permissions. Failure to do so may result in data corruption or loss, since the calling code may attempt commands that would result in deletion, mutation of data if appropriately prompted or reading sensitive data if such data is present in the database. The best way to guard against such negative outcomes is to (as appropriate) limit the permissions granted to the credentials used with this tool.
See https://python.langchain.com/docs/security for more information.
Enumerator of the Distance strategies for calculating distances between vectors.
Enumerator for different search strategies in FalkorDB VectorStore.
SearchType.VECTOR: This option searches using only
the vector indexes in the vectorstore, relying on the
similarity between vector embeddings to return
relevant results.
SearchType.HYBRID: This option performs a combined search,
querying both the full-text indexes and the vector indexes.
It integrates traditional text search with vector-based
search for more comprehensive results.
Enumerator of the index types.
FalkorDB vector index.
To use, you should have the falkordb python package installed