Questions tagged [pinecone]

43 questions
6
votes
2 answers

How to store chat history using langchain conversationalRetrievalQA chain in a Next JS app?

Im creating a text document QA chatbot, Im using Langchainjs along with OpenAI LLM for creating embeddings and Chat and Pinecone as my vector Store. See Diagram: After successfully uploading embeddings and creating an index on pinecone. I am using…
jasan
  • 11,475
  • 22
  • 57
  • 97
4
votes
2 answers

Is there a method to fetch all the vectors of a namespace in pinecone

How can I fetch all the vectors of a namespace in pinecone, as the fetch method expects the ids of the vectors. Is there any method to get all the ids of the vectors.
3
votes
1 answer

Inserting data as vectors from SQL Database to Pinecone

I have a profiles table in SQL with around 50 columns, and only 244 rows. I have created a view with only 2 columns, ID and content and in content I concatenated all data from other columns in a format like this: FirstName: John. LastName: Smith.…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
vote
1 answer

How to use a vector database to find matches between users?

I have an app where users can sign up and fill out a profile. This profile consists of 16 questions that can be answered using a slider. Each "answer" for a question can be between -3 and 3 (or 0 and 7). A user should be able to find similar users…
Andre Zimpel
  • 2,323
  • 4
  • 27
  • 42
1
vote
0 answers

Langchain chains not using Pinecone vectorstore

I try to use a perfectly valid and populated Pinecone index as a vectorstore in my langchain implementation. However, the chains don't load or operate with the vectorstore in any way. for example, this code: question = "What is your…
Kristian Vybiral
  • 509
  • 9
  • 20
1
vote
1 answer

Adding large chunks of text after embedding into pinecone without openai ratelimit in langchain

I am using langchain to read data from a pdf and convert it into a chunks of text. I then embed the data into vectors and load it into a vector store using pinecone. I am getting a maxretry error. I guess I am loading all the chunks at once which…
slaveCoder
  • 519
  • 2
  • 17
  • 46
1
vote
1 answer

Pinecone inside Azure FUnctions Enum RpcLogCategory has no value defined for name 'User'

I created an Azure Function in Python, with Python 3.10 and Azure Function Core Tools 4.0 which clearly says to use Python 3.10 and 3.11 Is still on preview. My code is literally nothing, just the import pinecone breaks the code. import…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
vote
2 answers

Format output text response from OpenAI API GPT

I am using GTP API to query HTML pages. I am trying to find a way to format the text output by the response from the GPT API. I am using Pinecone, Flask and LangChain. For example, when the output is instructions about something, instead of making a…
William M
  • 21
  • 2
1
vote
0 answers

Implementing Semantic Search on a Specific Documents and Using vectorstore.asRetriever() JavaScript LangChain Method and Metadata

I try to comprehend how the vectorstore.asRetriever() method operates. This exercise aims to guide semantic searches using a metadata filter that focuses on specific documents. There may be instances where I need to fetch a document based on a…
vetheve
  • 209
  • 1
  • 2
  • 9
1
vote
1 answer

Cant make memory work with ConversationalRetrievalChain in Langchain

I have simple txt file indexed in pine cone, and question answering works perfectly fine without memory. When I add ConversationBufferMemory and ConversationalRetrievalChain using session state the 2nd question is not taking into account the…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
1
vote
1 answer

Question mutiple pdf's using openai, pinecone, langchain

I am trying to ask questions against a multiple pdf using pinecone and openAI but I dont know how to. The code below works for asking questions against one document. but I would like to have multiple documents to ask questions against: #…
Juan Casas
  • 268
  • 2
  • 13
0
votes
0 answers

Embedding using Huggingface and Pinecone

I got a list of summarized PDFs and i want to embed them using a Huggingface model. After that i want to save them in a pinecone database with the namespace of their original document name. I always get some kind of ValueError because the vector is…
0
votes
0 answers

How to use retriever in Langchain?

I looked through lot of documentation but got confused on the retriever part. So I am building a chatbot using user's custom data. User will feed the data Data should be upserted to Pinecone Then later user can chat with their data there can be…
Manoj ahirwar
  • 1,062
  • 1
  • 10
  • 24
0
votes
0 answers

What's the best index distance metric for my Pinecone vector database, filled with a series of similarly formatted Markdown files?

As the title states, I'm wondering if I can get more insight into choosing a metric for my Pinecone database index. Currently, they offer 3 options to choose from. From their documentation, they are: euclidean - This is used to calculate the…
fullStackChris
  • 1,300
  • 1
  • 12
  • 24
0
votes
0 answers

How to query by different user's document from Pinecone

I plan to build a AI faq base on their website, pinecone.init(api_key = PINECONE_API_KEY, environment = PINECONE_ENV) index_name = "project-name" if index_name not in pinecone.list_indexes(): …
Ilake Chang
  • 1,542
  • 1
  • 14
  • 19
1
2 3