Spaces:
Sleeping
Sleeping
add source document
Browse files- .idea/workspace.xml +2 -2
- app.py +1 -1
.idea/workspace.xml
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
<list default="true" id="7ba7bcf7-b91a-42f5-86ac-54dca93c4bf7" name="Changes" comment="">
|
8 |
-
<change beforePath="$PROJECT_DIR$/
|
9 |
</list>
|
10 |
<option name="SHOW_DIALOG" value="false" />
|
11 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -50,7 +50,7 @@
|
|
50 |
<option name="number" value="Default" />
|
51 |
<option name="presentableId" value="Default" />
|
52 |
<updated>1696196025530</updated>
|
53 |
-
<workItem from="1696196027593" duration="
|
54 |
</task>
|
55 |
<servers />
|
56 |
</component>
|
|
|
5 |
</component>
|
6 |
<component name="ChangeListManager">
|
7 |
<list default="true" id="7ba7bcf7-b91a-42f5-86ac-54dca93c4bf7" name="Changes" comment="">
|
8 |
+
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
9 |
</list>
|
10 |
<option name="SHOW_DIALOG" value="false" />
|
11 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
50 |
<option name="number" value="Default" />
|
51 |
<option name="presentableId" value="Default" />
|
52 |
<updated>1696196025530</updated>
|
53 |
+
<workItem from="1696196027593" duration="2194000" />
|
54 |
</task>
|
55 |
<servers />
|
56 |
</component>
|
app.py
CHANGED
@@ -82,7 +82,7 @@ async def main(message: str):
|
|
82 |
|
83 |
result = qa_with_sources_chain({"query" : message})
|
84 |
msg = cl.Message(content="")
|
85 |
-
msg.content = result["result"]
|
86 |
|
87 |
await msg.send()
|
88 |
|
|
|
82 |
|
83 |
result = qa_with_sources_chain({"query" : message})
|
84 |
msg = cl.Message(content="")
|
85 |
+
msg.content = result["result"] + "\n" + "source document" + result["source_documents"][0]["text"]
|
86 |
|
87 |
await msg.send()
|
88 |
|