sanjeevl10 commited on
Commit
3f757a8
1 Parent(s): 5c6d34c

Added Final outputs

Browse files
Files changed (2) hide show
  1. FinalOutputs.png +0 -0
  2. app.py +1 -5
FinalOutputs.png ADDED
app.py CHANGED
@@ -60,10 +60,6 @@ text_splitter = RecursiveCharacterTextSplitter(
60
 
61
  chunks = text_splitter.split_documents(documents)
62
 
63
- #for chunk in chunks:
64
- # print(chunk)
65
- # print("----")
66
-
67
  ### 3. LOAD open ai EMBEDDINGS
68
  HF_EMBED_ENDPOINT = os.environ["HF_EMBED_ENDPOINT"]
69
 
@@ -176,4 +172,4 @@ async def main(message: cl.Message):
176
 
177
  response = lcel_rag_chain.invoke({"query" : message.content})
178
 
179
- await cl.Message(content=response).send()
 
60
 
61
  chunks = text_splitter.split_documents(documents)
62
 
 
 
 
 
63
  ### 3. LOAD open ai EMBEDDINGS
64
  HF_EMBED_ENDPOINT = os.environ["HF_EMBED_ENDPOINT"]
65
 
 
172
 
173
  response = lcel_rag_chain.invoke({"query" : message.content})
174
 
175
+ await cl.Message(content=response["response"]).send()