File tree Expand file tree Collapse file tree 3 files changed +0
-10
lines changed
Expand file tree Collapse file tree 3 files changed +0
-10
lines changed Original file line number Diff line number Diff line change 55
66from dotenv import load_dotenv
77import os
8-
9- from pydantic import BaseModel
10-
118from chains import FlashcardChain , QuizChain
12- from response_models import FlashcardResponse
13- from request_models import SummaryRequest
14-
159from rag import RAGHelper
1610
1711load_dotenv ()
Original file line number Diff line number Diff line change 33from langchain_community .document_loaders import PyMuPDFLoader , TextLoader
44from langchain_text_splitters import RecursiveCharacterTextSplitter
55from langchain_weaviate .vectorstores import WeaviateVectorStore
6- from langchain_cohere import CohereEmbeddings
76from langchain_core .documents import Document
87from dotenv import load_dotenv
98import os
1413# Setup shared embeddings model
1514load_dotenv ()
1615embeddings_model = HuggingFaceEmbeddings (model_name = "all-MiniLM-L6-v2" )
17- # embeddings_model_cohere = CohereEmbeddings(model="embed-english-light-v3.0", cohere_api_key=os.getenv("COHERE_API_KEY"))
1816
1917# Disable Huggingface's tokenizer parallelism (avoid deadlocks caused by process forking in langchain)
2018os .environ ["TOKENIZERS_PARALLELISM" ] = "false"
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ langchain-openai
1010langchain-weaviate
1111langchain-community
1212langchain-text-splitters
13- cohere == 5.12.0
14- langchain-cohere == 0.4.3
1513pymupdf # for the PDF loader
1614langchain_huggingface
1715sentence-transformers
You can’t perform that action at this time.
0 commit comments