VECTOR data type, so you can combine semantic search over unstructured data with relational queries over business data in a single database.
Requirements
- Oracle Database 23.4 or later, with a user that can create tables and vector indexes
- The
python-oracledbdriver. In thick mode, Oracle Client 23.4 or later is also required.
Usage
client instead of connection_params:
Config
Here are the parameters available for configuring Oracle AI Vector Search:When you pass a pre-built
client, Mem0 uses it as-is and ignores connection_params and use_connection_pool. Mem0 does not close a client it did not create.Vector indexes
Set the index type withindex_type and tune it with index_parameters:
CREATE VECTOR INDEX reference.
Search scores
Oracle returns a distance fromVECTOR_DISTANCE, which Mem0 converts to a score where higher means more similar. COSINE and the other non-negative metrics produce scores in the range [0, 1]. DOT returns the inner product, which can fall outside that range.
Metadata filters
Filters run against the JSONpayload column and support:
Multiple fields at the top level are combined with
AND: