Last active
September 10, 2023 15:35
-
-
Save sukanyabag/1792269bef4def470d191e293fcb3b36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from langchain import PromptTemplate | |
from langchain.embeddings import OpenAIEmbeddings | |
from langchain.vectorstores.deeplake import DeepLake | |
from langchain.document_loaders import TextLoader | |
from langchain.text_splitter import CharacterTextSplitter | |
from langchain.document_loaders import PyMuPDFLoader | |
from langchain.chat_models.openai import ChatOpenAI | |
from langchain.chains import RetrievalQA | |
from langchain.memory import ConversationBufferWindowMemory | |
from .utils import save | |
import config as cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment