protectai / rebuff

LLM Prompt Injection Detector
https://playground.rebuff.ai
Apache License 2.0
1.06k stars 73 forks source link

Use langchain for pinecone #40

Closed ristomcgehee closed 11 months ago

ristomcgehee commented 11 months ago

Hi! I'm interested in helping out with this project so I found an issue that I thought I could tackle. In this PR, I'm abstracting the use of Pinecone by using VectorStore from langchain. This is a necessary step before being able to use Chroma or Supabase as a vector store. If this PR looks good, I can work on the rest of #16.

Part of https://github.com/protectai/rebuff/issues/16

seanpmorgan commented 11 months ago

Thanks @ristomcgehee! Will review shortly, but there is a CI update we need to make this week to enable testing from forked repos. Just wanted to comment so it's clear this isn't stale or forgotten