KushwanthK commited on
Commit
49ba541
1 Parent(s): 71d9ba3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -116,10 +116,10 @@ def prompt_engineer(text, longtext, query):
116
  from langchain.chains.combine_documents import create_stuff_documents_chain
117
  from langchain.chains.llm import LLMChain
118
  from langchain_core.prompts import ChatPromptTemplate
119
- from langchain.docstore.document import Document
120
 
121
- docs = Document(page_content=longtext, metadata={"source": "local"})
122
-
123
  # Define prompt
124
  prompt = ChatPromptTemplate.from_messages(
125
  [("system", summary_prompt_template)]
 
116
  from langchain.chains.combine_documents import create_stuff_documents_chain
117
  from langchain.chains.llm import LLMChain
118
  from langchain_core.prompts import ChatPromptTemplate
119
+ from langchain_core.documents import Document
120
 
121
+ docs = Document(page_content=longtext, metadata={"source": "pinecone"})
122
+ st.write(docs)
123
  # Define prompt
124
  prompt = ChatPromptTemplate.from_messages(
125
  [("system", summary_prompt_template)]