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
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):
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
Beta Was this translation helpful? Give feedback.
All reactions