Skip to content

feat: add opt-in Pinecone retrieval practice - #40

Merged
CoreyLeath-code merged 4 commits into
mainfrom
feat/pinecone-portfolio-practice-20260725
Jul 26, 2026
Merged

feat: add opt-in Pinecone retrieval practice#40
CoreyLeath-code merged 4 commits into
mainfrom
feat/pinecone-portfolio-practice-20260725

Conversation

@CoreyLeath-code

Copy link
Copy Markdown
Owner

Summary

Implements the Pinecone and portfolio engineering practices from SentinelAI issue #13 for TrojanChat.

  • preserves the existing local/offline vector backend as the default
  • adds an opt-in Pinecone adapter with environment-only secrets
  • adds Pinecone configuration and optional dependency documentation
  • adds a linked Pinecone badge to the README
  • documents hosted retrieval benchmark requirements separately from local measurements
  • keeps production and domain claims explicitly bounded

Validation

The repository's existing CI, tests, security scans, and benchmark workflows should validate the change. Pinecone network calls are not required for default CI.

Refs CoreyLeath-code/SentinelAI#13

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@CoreyLeath-code, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 9 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5db4eb38-ee02-4efa-ae21-f25b658f9eaf

📥 Commits

Reviewing files that changed from the base of the PR and between ad3f6ab and d420d40.

📒 Files selected for processing (4)
  • .env.example
  • README.md
  • ai/retrieval/pinecone_search.py
  • requirements-pinecone.txt
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/pinecone-portfolio-practice-20260725

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d420d40e79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .env.example

# Vector DB
# Vector DB (Qdrant remains the default local backend)
VECTOR_SEARCH_BACKEND=qdrant

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wire the backend selector into retrieval construction

Setting VECTOR_SEARCH_BACKEND=pinecone has no runtime effect because the setting is never read anywhere; ai/graph/langgraph_flow.py still imports and unconditionally constructs QdrantSearch at lines 2 and 12. Consequently, every user following the new opt-in instructions continues querying Qdrant instead of the configured Pinecone index, so the advertised backend cannot be activated.

Useful? React with 👍 / 👎.

Comment thread requirements-pinecone.txt
@@ -0,0 +1,2 @@
# Optional hosted semantic-search backend.
pinecone>=6.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Install the adapter's Cohere dependency

In a clean environment following the documented install command, importing PineconeSearch fails with ModuleNotFoundError: cohere: this file installs only pinecone, while pinecone_search.py imports CohereEmbedder, whose module imports cohere at module load time. The base requirements.txt also does not declare cohere, so installing both declared requirement files still leaves the new adapter unusable.

Useful? React with 👍 / 👎.

@CoreyLeath-code
CoreyLeath-code merged commit aff7386 into main Jul 26, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant