Repository navigation
Update the LlamaIndex notebook to current SDKs - #624
Merged
Merged
Conversation
Port the code from the LlamaIndex integration guide on docs.pinecone.io so the notebook matches it step by step: pinecone 9.1.0, llama-index 0.14.25, the llama-index-vector-stores-pinecone package, text-embedding-3-small, and gpt-4o-mini. Add an out-of-scope evaluation example and a cleanup step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This PR is too large for Bugbot to review. It changes 1,516 lines and 1,926,351 characters. Split the change into smaller pull requests to get a review. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ports the tested code from the LlamaIndex integration guide so the notebook matches the page step by step. It was pinned to
pinecone-client[grpc]==3.0.0andllama-index==0.9.34and used imports that no longer exist.pinecone==9.1.0(the highest versionllama-index-vector-stores-pinecone==0.9.0allows, since it requirespinecone<10),llama-index==0.14.25, and the splitllama-index-*packages.text-embedding-3-smallfor embeddings andgpt-4o-minifor generation and evaluation.main.Ran end to end on Python 3.12: 46 vectors upserted, the relevancy check passes for the in-scope query and fails for the out-of-scope one.
Note
Low Risk
Documentation-only notebook update with no production code or auth changes; risk is limited to example correctness and pinned dependency versions.
Overview
Brings
using-llamaindex-with-pinecone.ipynbin line with the LlamaIndex integration guide so it runs on current Pinecone and LlamaIndex packages.Dependency and API refresh: Replaces legacy pins (
pinecone-client[grpc]==3.0.0, monolithicllama-index==0.9.34) withpinecone==9.1.0,llama-index==0.14.25, and split packages (llama-index-vector-stores-pinecone,llama-index-readers-file, etc.), and updates imports to thellama_index.core/ integration module layout (PineconeGRPC,PineconeVectorStore,IngestionPipeline, and related APIs).Models and flow: Uses
text-embedding-3-smallfor splitting/embeddings andgpt-4o-minifor RAG answers andRelevancyEvaluatorchecks. Adds the guide’s out-of-scope query/eval example and a cleanup cell that deletes the Pinecone index. Colab and nbviewer badge URLs now target themainbranch.Reviewed by Cursor Bugbot for commit 2eb5102. Bugbot is set up for automated code reviews on this repo. Configure here.