danicafisher commited on
Commit
eeebf9d
1 Parent(s): 9b963d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -29,27 +29,6 @@ Context:
29
  """
30
  chat_prompt = ChatPromptTemplate.from_messages([("system", rag_system_prompt_template), ("human", rag_user_prompt_template)])
31
 
32
- # @cl.on_chat_start
33
- # async def on_chat_start():
34
- # qdrant_client = QdrantClient(url=os.environ["QDRANT_ENDPOINT"], api_key=os.environ["QDRANT_API_KEY"])
35
- # qdrant_store = Qdrant(
36
- # client=qdrant_client,
37
- # collection_name="kai_test_docs",
38
- # embeddings=te3_small
39
- # )
40
- # retriever = qdrant_store.as_retriever()
41
-
42
- # global retrieval_augmented_qa_chain
43
- # retrieval_augmented_qa_chain = (
44
- # {"context": itemgetter("question") | retriever, "question": itemgetter("question")}
45
- # | RunnablePassthrough.assign(context=itemgetter("context"))
46
- # | chat_prompt
47
- # | chat_model
48
- # )
49
-
50
- # await cl.Message(content="Ask away!").send()
51
-
52
-
53
  @cl.on_chat_start
54
  async def on_chat_start():
55
  qdrant_client = QdrantClient(url=os.environ["QDRANT_ENDPOINT"], api_key=os.environ["QDRANT_API_KEY"])
 
29
  """
30
  chat_prompt = ChatPromptTemplate.from_messages([("system", rag_system_prompt_template), ("human", rag_user_prompt_template)])
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  @cl.on_chat_start
33
  async def on_chat_start():
34
  qdrant_client = QdrantClient(url=os.environ["QDRANT_ENDPOINT"], api_key=os.environ["QDRANT_API_KEY"])