dfasd commited on
Commit
d121c54
·
verified ·
1 Parent(s): 71f25da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  from dotenv import load_dotenv
3
  import os
4
  from langchain_community.document_loaders import TextLoader
@@ -21,7 +20,7 @@ load_dotenv()
21
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
22
 
23
  text_splitter = CharacterTextSplitter(separator = "\n", chunk_size=1000, chunk_overlap=200, length_function = len)
24
- embeddings = OpenAIEmbeddings(openai_api_key=OPENAI_API_KEY)
25
  retrieval_qa_chat_prompt = hub.pull("langchain-ai/retrieval-qa-chat")
26
  llm = ChatOpenAI(api_key=OPENAI_API_KEY)
27
 
 
 
1
  from dotenv import load_dotenv
2
  import os
3
  from langchain_community.document_loaders import TextLoader
 
20
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
21
 
22
  text_splitter = CharacterTextSplitter(separator = "\n", chunk_size=1000, chunk_overlap=200, length_function = len)
23
+ embeddings = OpenAIEmbeddings(api_key=OPENAI_API_KEY)
24
  retrieval_qa_chat_prompt = hub.pull("langchain-ai/retrieval-qa-chat")
25
  llm = ChatOpenAI(api_key=OPENAI_API_KEY)
26