Coder Social home page Coder Social logo

Comments (4)

louis030195 avatar louis030195 commented on July 22, 2024

@hwchase17 Hey, not sure this is usable now with Pinecone?

Hesitated to create an issue for this

ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'content-type': 'text/plain; charset=UTF-8', 'date': 'Wed, 11 Jan 2023 16:36:26 GMT', 'content-length': '131', 'x-envoy-upstream-service-time': '2133', 'server': 'envoy'})
HTTP response body: The index exceeds the project quota of 1 pods by 1 pods. Upgrade your account or change the project settings to increase the quota.

However I have given an existing Pinecone index

from langchain.docstore.document import Document
from langchain.vectorstores.pinecone import Pinecone
from langchain.embeddings.openai import OpenAIEmbeddings
from langchain.vectorstores.faiss import FAISS
from langchain.text_splitter import CharacterTextSplitter
from langchain import OpenAI, VectorDBQA

o = OpenAIEmbeddings()
p = Pinecone(index, o.embed_query, "content")
p.from_documents(
    documents=[
        Document(
            page_content=e.metadata["content"],
            metadata=e.metadata,
        )
        for e in response.matches
    ],
    embedding=o
)

from langchain.

hwchase17 avatar hwchase17 commented on July 22, 2024

hmm looks like an issue in your pinecone account?

from langchain.

louis030195 avatar louis030195 commented on July 22, 2024

langchain is trying to create a new index while I passed an existing one (and of course it fails because free plan is limited to one index)

from langchain.

dosubot avatar dosubot commented on July 22, 2024

Hi, @hwchase17! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you opened this issue requesting support for the pinecone vector DB. There was some discussion between you and louis030195 regarding an error related to the project quota when using Pinecone. It was discovered that the error occurred because langchain was trying to create a new index instead of using an existing one, which is limited to one index on the free plan.

Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.

Thank you for your understanding and contribution to the LangChain project!

from langchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.