You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pochomo opened this issue
Sep 20, 2024
· 4 comments
Labels
🤖:bugRelated to a bug, vulnerability, unexpected error with an existing featurestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
I searched the LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangChain rather than my code.
The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
from app.services.document_loader import PDFLoader
from app.services.vector_store import VectorStore
from langchain_community.chat_models import ChatOpenAI
from langchain.chains import create_retrieval_chain
from langchain.memory import ConversationBufferMemory
from pydantic import BaseModel
from typing import List
router = APIRouter()
pdf_loader = PDFLoader()
vector_store = VectorStore()
class ChatRequest(BaseModel):
message: str
@router.post("/upload-pdf")
async def upload_pdf(files: List[UploadFile] = File(...)):
@router.post("/chat")
async def chat(request: ChatRequest):
@router.get("/check-vector-store")
async def check_vector_store(is_law_related: bool = False):
Error Message and Stack Trace (if applicable)
"create_retrieval_chain" is unknown import symbol
Description
I have an error here "from langchain.chains import create_retrieval_chain"
, the contents of the error are as follows ""create_retrieval_chain" is unknown import symbol". my version of langchains are
🤖:bugRelated to a bug, vulnerability, unexpected error with an existing featurestaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
"create_retrieval_chain" is unknown import symbol
Description
I have an error here "from langchain.chains import create_retrieval_chain"
, the contents of the error are as follows ""create_retrieval_chain" is unknown import symbol". my version of langchains are
[langchain 0.3.0
langchain-anthropic 0.2.1
langchain-chroma 0.1.4
langchain-community 0.3.0
langchain-core 0.3.2
langchain-openai 0.2.0
langchain-text-splitters 0.3.0]
can window cause an error?? I really need to fix this, please help.
System Info
python 3.12.6
langchain 0.3.0
langchain-anthropic 0.2.1
langchain-chroma 0.1.4
langchain-community 0.3.0
langchain-core 0.3.2
langchain-openai 0.2.0
langchain-text-splitters 0.3.0
The text was updated successfully, but these errors were encountered: