feat: add Claude + Oracle AI Database Vector Search RAG cookbook example#396
Open
Ela689 wants to merge 3 commits intoanthropics:mainfrom
Open
feat: add Claude + Oracle AI Database Vector Search RAG cookbook example#396Ela689 wants to merge 3 commits intoanthropics:mainfrom
Ela689 wants to merge 3 commits intoanthropics:mainfrom
Conversation
- Add prerequisites section (Oracle DB setup) - Fix pip deps (sentence-transformers) - Add cleanup cell (close DB connection) - Clarify Claude model recommendation (4.5+ suggested, Haiku fallback) - Clean notebook outputs
…hybrid search, HNSW) - Replace mocked similarity with VECTOR_DISTANCE(COSINE) - Add hybrid search (vector + SQL WHERE) - Add HNSW vector index creation - Use strongly typed vectors VECTOR(1024, FLOAT32) - Polish wording and clarify setup steps - Clean and rerun notebook outputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR adds
This PR adds a new third-party cookbook example for building an end-to-end Retrieval-Augmented Generation (RAG) pipeline using:
The notebook is designed as a practical, runnable walkthrough and goes beyond a minimal demo by showcasing Oracle-native vector capabilities in a realistic RAG flow.
Highlights of the example
This cookbook demonstrates:
VECTOR(1024, FLOAT32)VECTOR_DISTANCEWhat’s included
third_party/OracleAI/rag_using_oracle_ai_db.ipynbthird_party/OracleAI/Readme.mdThe notebook covers:
.env)oracledb)Environment support
The example is written to support both:
Both use the same Python
oracledbclient API, with only connection configuration changes.Why this is valuable
This example helps users understand how to build a production-oriented RAG pipeline with Oracle AI Database Vector Search while preserving the strengths of relational SQL (metadata filtering, structured queries) alongside vector retrieval.
Testing status
Happy to iterate on any additional feedback. 🙌