Skip to content

notebooks/agent_memory: default support assistant to OpenAI embeddings#216

Merged
WSPluta merged 1 commit into
mainfrom
feature/oamp-support-assistant-openai-embeddings
Jul 7, 2026
Merged

notebooks/agent_memory: default support assistant to OpenAI embeddings#216
WSPluta merged 1 commit into
mainfrom
feature/oamp-support-assistant-openai-embeddings

Conversation

@RichmondAlake

@RichmondAlake RichmondAlake commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #215. Makes an OpenAI embedding model the default for the support assistant
notebook (what most developers start with), while keeping the in-database ONNX model as a
first-class alternative
selected via OAMP_EMBED_BACKEND.

Changes

  • Default embedding route = text-embedding-3-small (through LiteLLM). A single
    OAMP_EMBED_BACKEND toggle (openai | indb) sets both the embedder and the matching search
    strategy, because the runtime couples them:
    • openaiSearchStrategy.VECTOR with an explicit vector_dim (the model runs outside the DB).
    • indbOracleDBEmbedder + Oracle's managed HYBRID index (HYBRID requires an in-DB embedder).
  • Markdown explains when to prefer in-database embedding — fewer network hops, lower retrieval
    latency, data locality/governance — plus a link and a DBMS_VECTOR.LOAD_ONNX_MODEL snippet for
    importing the model.
  • Install the [litellm] extra so the OpenAI route works out of the box.
  • Route-accurate wording throughout (vector vs. hybrid) and README row 06 updated to "pluggable
    embeddings (OpenAI by default or an in-database ONNX model)".

Validation

Ran end-to-end against Oracle AI Database 26ai with text-embedding-3-small (1536-dim) and gpt-5.4:
0 errors, probe (2, 1536), RET-14D retrieved by exact code and paraphrase, all asserts
(corrected preference, cross-user isolation, chunk reconciliation) pass, and teardown leaves the store empty.

…tant example

Make text-embedding-3-small (via LiteLLM) the default embedding route, since a
hosted OpenAI embedding model is what most developers start with, and keep the
in-database ONNX model as a first-class alternative selected with OAMP_EMBED_BACKEND.

- Route toggle sets both the embedder and the search strategy: OpenAI -> vector
  search with an explicit vector_dim; in-database -> Oracle managed hybrid index.
- Add markdown explaining when to prefer in-database embedding (fewer network hops,
  lower retrieval latency, data locality) plus a link and LOAD_ONNX_MODEL snippet
  for importing the model.
- Install the [litellm] extra so the OpenAI route works out of the box.
- Validated end-to-end against Oracle AI Database 26ai: 0 errors, all asserts pass.
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jul 7, 2026
@WSPluta WSPluta merged commit cc17201 into main Jul 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants