Skip to main content
Oracle AI Vector Search stores embeddings in an Oracle table using the native 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-oracledb driver. In thick mode, Oracle Client 23.4 or later is also required.

Usage

To reuse a connection or pool you already manage, pass it as 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 with index_type and tune it with index_parameters:
For the full list of supported options, see the Oracle CREATE VECTOR INDEX reference.

Search scores

Oracle returns a distance from VECTOR_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 JSON payload column and support: Multiple fields at the top level are combined with AND: