Spaces:
Runtime error
Runtime error
Upload 5 files
Browse files- Data_PreProcess.ipynb +0 -0
- Readme.md +22 -0
- app.py +60 -0
- docker.ipynb +252 -0
- summ_texts.txt +148 -0
Data_PreProcess.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Readme.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This is a RAG project for Tech Weekend 2024 Hackathon
|
| 2 |
+
|
| 3 |
+
Team Members:
|
| 4 |
+
1. Romit Ganjoo
|
| 5 |
+
2. Srinivas Rao Chavan
|
| 6 |
+
|
| 7 |
+
File Description:
|
| 8 |
+
1. app.py: This app.py file serves as the main script for the #@ck-RAG application. The application integrates Streamlit for user interface and utilizes various libraries including requests and qdrant_client. It interacts with an external API for predictions and provides query results based on user input.
|
| 9 |
+
|
| 10 |
+
2. docker.ipynb: The docker.ipynb file outlines the process of setting up a Docker container to run the Qdrant service. It utilizes Docker to deploy the Qdrant container with specified port mappings. Additionally, it demonstrates how to use the qdrant_client library to interact with the Qdrant service within the Docker container.
|
| 11 |
+
|
| 12 |
+
3. Data_PreProcess.ipynb: The Data_PreProcess.ipynb file filters the dataset and summarizes the contexts and exports it to an external file.
|
| 13 |
+
|
| 14 |
+
Building the Project:
|
| 15 |
+
First we need to perform data poreprocessing as done in the python notebook.
|
| 16 |
+
This will generate a list of summarized hotel descriptions which will contain information from features such as locality(city), hotel_name, hotel_description, review_text.
|
| 17 |
+
This list of summaries are converted into embeddings using Qdrant.client library
|
| 18 |
+
Next, we push the embeddings in the Qdrant db
|
| 19 |
+
Then we integrate the ares api with the Qdrant db which utilizes the context given by qdrant client.
|
| 20 |
+
Hence the ares api returns the response conatining the hotel names along with reason to the user聽on聽the聽website
|
| 21 |
+
|
| 22 |
+
Link to Presentation: https://docs.google.com/presentation/d/1oXu1vuy3TJfYXYG-Gp_fIQrMTNdHPnrCFfhBZu3igH8/edit?usp=sharing
|
app.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import requests
|
| 4 |
+
|
| 5 |
+
import qdrant_client
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
client = qdrant_client.QdrantClient("http://localhost:6333", prefer_grpc=True)
|
| 10 |
+
client.get_collections()
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
url = "https://api-ares.traversaal.ai/live/predict"
|
| 14 |
+
headers = {
|
| 15 |
+
"x-api-key": "ares_5e61d51f3abc8feb37710d8784fa49e11426ee25d7ec5236b80362832f306ed2",
|
| 16 |
+
"content-type": "application/json"
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
st.title('#@ck-RAG')
|
| 20 |
+
def inference(query):
|
| 21 |
+
payload = { "query": [query] }
|
| 22 |
+
response = requests.post(url, json=payload, headers=headers)
|
| 23 |
+
# st.error(response)
|
| 24 |
+
# st.error(response.text)
|
| 25 |
+
response_text=response.json().get('data').get('response_text')
|
| 26 |
+
urls=response.json().get('data').get('web_url')
|
| 27 |
+
return response_text, urls
|
| 28 |
+
|
| 29 |
+
prompt = st.text_input('Enter a query', value='')
|
| 30 |
+
|
| 31 |
+
if prompt:
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
results = client.query(
|
| 35 |
+
collection_name="knowledge-base",
|
| 36 |
+
query_text=prompt,
|
| 37 |
+
limit=10,
|
| 38 |
+
)
|
| 39 |
+
#results
|
| 40 |
+
|
| 41 |
+
context = "Hotel Name: " + "\n".join(r.document for r in results )
|
| 42 |
+
#context
|
| 43 |
+
metaprompt = f"""
|
| 44 |
+
Based on the context provided, provide information about the Question. You can give multiple points based on the question asked or context.
|
| 45 |
+
|
| 46 |
+
Question: {prompt.strip()}
|
| 47 |
+
|
| 48 |
+
Context:
|
| 49 |
+
{context.strip()}
|
| 50 |
+
|
| 51 |
+
Answer:
|
| 52 |
+
"""
|
| 53 |
+
response_text,urls = inference(metaprompt)
|
| 54 |
+
|
| 55 |
+
# Look at the full metaprompt
|
| 56 |
+
# print(metaprompt)
|
| 57 |
+
st.write('Query Results:')
|
| 58 |
+
st.write(response_text)
|
| 59 |
+
st.write('Sources:')
|
| 60 |
+
st.write(urls)
|
docker.ipynb
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 24,
|
| 6 |
+
"metadata": {},
|
| 7 |
+
"outputs": [
|
| 8 |
+
{
|
| 9 |
+
"name": "stdout",
|
| 10 |
+
"output_type": "stream",
|
| 11 |
+
"text": [
|
| 12 |
+
"69050aa19c302b38e5698575eaa553bf137b0cd391c976a74c6767f6c46ced66\n"
|
| 13 |
+
]
|
| 14 |
+
}
|
| 15 |
+
],
|
| 16 |
+
"source": [
|
| 17 |
+
"!docker run -p \"6333:6333\" -p \"6334:6334\" --name \"rag-traversaal-qdrant\" --rm -d qdrant/qdrant:latest"
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"cell_type": "code",
|
| 22 |
+
"execution_count": 25,
|
| 23 |
+
"metadata": {},
|
| 24 |
+
"outputs": [
|
| 25 |
+
{
|
| 26 |
+
"data": {
|
| 27 |
+
"text/plain": [
|
| 28 |
+
"CollectionsResponse(collections=[])"
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
"execution_count": 25,
|
| 32 |
+
"metadata": {},
|
| 33 |
+
"output_type": "execute_result"
|
| 34 |
+
}
|
| 35 |
+
],
|
| 36 |
+
"source": [
|
| 37 |
+
"import qdrant_client\n",
|
| 38 |
+
"\n",
|
| 39 |
+
"client = qdrant_client.QdrantClient(\"http://localhost:6333\", prefer_grpc=True)\n",
|
| 40 |
+
"client.get_collections()"
|
| 41 |
+
]
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"cell_type": "code",
|
| 45 |
+
"execution_count": 26,
|
| 46 |
+
"metadata": {},
|
| 47 |
+
"outputs": [],
|
| 48 |
+
"source": [
|
| 49 |
+
"with open(\"summ_texts.txt\", \"r\", encoding=\"utf-8\") as file:\n",
|
| 50 |
+
" document = file.readlines()"
|
| 51 |
+
]
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"cell_type": "code",
|
| 55 |
+
"execution_count": 27,
|
| 56 |
+
"metadata": {},
|
| 57 |
+
"outputs": [
|
| 58 |
+
{
|
| 59 |
+
"data": {
|
| 60 |
+
"text/plain": [
|
| 61 |
+
"['ff28097a3c8042709239c0a1e8fffc4a',\n",
|
| 62 |
+
" 'de3388302b014f1ab426ea3866427d60',\n",
|
| 63 |
+
" 'bb5de6ec82514482aa37ef44770bd257',\n",
|
| 64 |
+
" '834c9eab4bae4547a3a3b8aa358515a5',\n",
|
| 65 |
+
" 'ec3166e01c73412b9fc1b24b8c57c9e6',\n",
|
| 66 |
+
" 'b40463e5a239408b847659f7b2c8366d',\n",
|
| 67 |
+
" '99d22d7496ae4c2a90bfa9ee977c8cbc',\n",
|
| 68 |
+
" 'd9e7d5ec895d46ad9ff27c49fff3a050',\n",
|
| 69 |
+
" '2df69728537e48feacb46a742c287c1a',\n",
|
| 70 |
+
" '92726c2c71b54c4f921ea4194c4670cb',\n",
|
| 71 |
+
" 'c16efe98b3794e5784632d75910147d7',\n",
|
| 72 |
+
" '8f2e64940f334bb1859afd1b6d4114a6',\n",
|
| 73 |
+
" 'b8fdbe23c9c44eeea06ae6ac20255be7',\n",
|
| 74 |
+
" '317ce638016b48089d88a81304305661',\n",
|
| 75 |
+
" 'e601117dc69f438490387410859e4297',\n",
|
| 76 |
+
" '96a52598250040ec8138dff13f90e177',\n",
|
| 77 |
+
" '8dd908fb4b4e40b3a658c0c01a928e01',\n",
|
| 78 |
+
" 'b7a4b9d24c1c4f798ff89a21c96d872c',\n",
|
| 79 |
+
" '9b20e619b52549829c407098b583b2b1',\n",
|
| 80 |
+
" '458255ce061e4dfdb8dafbb169d3af5a',\n",
|
| 81 |
+
" '3bafa59f470c4e66b37235e88b23a421',\n",
|
| 82 |
+
" '30c70ae5ece0422fbe2af109bcf21148',\n",
|
| 83 |
+
" 'e01fa78eda63462197837d1c022576ab',\n",
|
| 84 |
+
" '725e9572aa7341a9add96b7f6f097ae6',\n",
|
| 85 |
+
" 'de408b004d0a4bceb9abf0932fe3fdb0',\n",
|
| 86 |
+
" '65b32277941f4f6993d9aa697fd1c055',\n",
|
| 87 |
+
" 'd92c6426374042b39d61878b30d9deb6',\n",
|
| 88 |
+
" '9759ebba518140e7bfc1c074cd7d40b0',\n",
|
| 89 |
+
" 'faefbe75bbaf465c8ef7d688723e203b',\n",
|
| 90 |
+
" '8057e84b85a548d6b8085fba6263b2d4',\n",
|
| 91 |
+
" '5528128e4a8e4721b2d1fb1a55f257b3',\n",
|
| 92 |
+
" '98360cef639843248403c8384d63b191',\n",
|
| 93 |
+
" '24bd92f5821f4d4ba36e458a0288bbc4',\n",
|
| 94 |
+
" '4a179d2341484ef6a56407c32fbed9f1',\n",
|
| 95 |
+
" '08ffbf99f4ec491da29379974a7be874',\n",
|
| 96 |
+
" 'e0b858f99d394be89b56b8e31a97bcfe',\n",
|
| 97 |
+
" '02e78c34c903459aabf150df97a963ed',\n",
|
| 98 |
+
" 'af5065326960419c9e793d75e5dfe4a5',\n",
|
| 99 |
+
" 'aaadc30929eb4332b6c7762dbb43d776',\n",
|
| 100 |
+
" '70ddc2c5b8f942b88e96d4585994b1f0',\n",
|
| 101 |
+
" '30ecb167dc764071bb1f27ad43c7da1a',\n",
|
| 102 |
+
" '9835e95e5f6b4654af87c9fab89847ab',\n",
|
| 103 |
+
" '887580e83e534456a70378863a56c0a9',\n",
|
| 104 |
+
" '074e5abb5e0f4596b0178154950bddc5',\n",
|
| 105 |
+
" '3c9baf3ecfa74af78e75fdf697b36045',\n",
|
| 106 |
+
" 'c469fe8d08464194a94df7fb9afd4ac1',\n",
|
| 107 |
+
" '16fb4c4b6db44d9ab82671c221420669',\n",
|
| 108 |
+
" '6cf270acb16b41f0b7bf331967f53856',\n",
|
| 109 |
+
" '86c870b8879b44f194f3236e49eca001',\n",
|
| 110 |
+
" '8f873d0fc8ec4d1893ea38c0a3d2d81e',\n",
|
| 111 |
+
" 'f31228b0b0a5476c932c8ac1b88fe0b9',\n",
|
| 112 |
+
" 'b544701028824a34800b77cb5c53246c',\n",
|
| 113 |
+
" 'e6f95a4872514134aba698bef5d86653',\n",
|
| 114 |
+
" 'e1d2275010f2480d964a77dabf0a415e',\n",
|
| 115 |
+
" '984b2e67337e448eb4e2d2aaa2e2fcb2',\n",
|
| 116 |
+
" '4c0071417470414fb4ceb81c52f36fec',\n",
|
| 117 |
+
" 'b9bccd8b68074859ac1c63cfd8823598',\n",
|
| 118 |
+
" '26b43f09fbeb4f39bd7992e5c0b8ae91',\n",
|
| 119 |
+
" 'cae6882091a64b3ab9e2c4005bcc19e0',\n",
|
| 120 |
+
" 'cc80148a7aaf466486a6414614bc348a',\n",
|
| 121 |
+
" 'fee528dd7fbb4828ab1f0874ce0f986f',\n",
|
| 122 |
+
" '6cbbe048deeb4dfb998ac0cbce5abd93',\n",
|
| 123 |
+
" '15e80c4ce2324718873401f30ab574a3',\n",
|
| 124 |
+
" '408f2af8b8b54c2d8c492e635898792c',\n",
|
| 125 |
+
" '5965677a947a4d94be0675007d823b99',\n",
|
| 126 |
+
" 'a8ac15b012c842aabe0013c0ef73d4a7',\n",
|
| 127 |
+
" '6efc03bf46884981b0e7ab24e6089b92',\n",
|
| 128 |
+
" 'ff2f44ebc936411e91e6319fd0fb59af',\n",
|
| 129 |
+
" '40a043c3b90c4d7e85951c86422749b9',\n",
|
| 130 |
+
" '480dcc3e72d94ee8ae99eca49a23a1a2',\n",
|
| 131 |
+
" 'f70f75ee9fae4a66838d52881ec57dee',\n",
|
| 132 |
+
" 'a3ce4e10893b488596f1118e03a95571',\n",
|
| 133 |
+
" '30a597c36cb340659b325d0a3cb655a9',\n",
|
| 134 |
+
" '0d9942fe8e2e455fbc67f25f928e9834',\n",
|
| 135 |
+
" '5cfe489d3b0d4e27b62b76569e001aa5',\n",
|
| 136 |
+
" 'e446ef1316b744419a6eadb3d177d8a0',\n",
|
| 137 |
+
" 'eeb5980a2939410593d61f66eae218e6',\n",
|
| 138 |
+
" 'de3e0f7c2da248aebd0c913f41549646',\n",
|
| 139 |
+
" '0abc431cb5654a8b80d0ea07d5753e71',\n",
|
| 140 |
+
" '4d8831f416ac4a779b471b4c167d0d10',\n",
|
| 141 |
+
" '36d92838f2d34e24a1bb831a4410bad2',\n",
|
| 142 |
+
" '204686a5eb264950a79a79822d425e51',\n",
|
| 143 |
+
" '755dd4a9c60649c4a1e1428c7542d460',\n",
|
| 144 |
+
" '4944700b83f84b0fb49bfce6885db86b',\n",
|
| 145 |
+
" '62c73abebc6b40c886623b75ae78be18',\n",
|
| 146 |
+
" '9d2db58c01f4487aabfb65907c5df78f',\n",
|
| 147 |
+
" 'ea99f861734849b5bb9687958c0c3721',\n",
|
| 148 |
+
" '70aa9afc6e7e45a9a05170913275e2ea',\n",
|
| 149 |
+
" '1983acd0f5474cb2a5dbcbd4f177c663',\n",
|
| 150 |
+
" 'daada3b6357d4778ae6328710c7b28fc',\n",
|
| 151 |
+
" '5614b79e12714a38a48bc6d13a2c3411',\n",
|
| 152 |
+
" '65c8ffb55e8748f886c73a4c5d622edd',\n",
|
| 153 |
+
" 'cab739b7e7974f859fa5822cc854ae40',\n",
|
| 154 |
+
" '7cff242c7e7c45979820f09c028b8fa2',\n",
|
| 155 |
+
" 'd85d3fdfb9674b4e9c52ffd0ac58d74e',\n",
|
| 156 |
+
" '81b7865fdfb04113a2313966c4e48cff',\n",
|
| 157 |
+
" '7c8632b2a3ff4d6aaa8dea3d35e08cff',\n",
|
| 158 |
+
" 'cb54baa054f542068cedb83fb231b7cc',\n",
|
| 159 |
+
" '8a65e13b2ae948bf97b220172b2c9fca',\n",
|
| 160 |
+
" '52c67e5cfc494506b720295e4cc02355',\n",
|
| 161 |
+
" '98a2fede91f744c78f23ea649d755a21',\n",
|
| 162 |
+
" '825f2b3ec2924cc0b653b6e2cbbf4e22',\n",
|
| 163 |
+
" '44a46f1b2eb74be69dd29ca6d5410a0f',\n",
|
| 164 |
+
" 'bc09d73ff0e645fd8cf20149cf0e4cd5',\n",
|
| 165 |
+
" 'f4a5ed52d3c04a6384cf7e24ba15a367',\n",
|
| 166 |
+
" '025f2d19df4c49e8a1476673463a120b',\n",
|
| 167 |
+
" 'aaee61aaf3f54e428278c0f7b643106a',\n",
|
| 168 |
+
" 'c7fb620c19984baa95b56c0533912585',\n",
|
| 169 |
+
" 'f716ac9ce6f244758bcecc6412554b1c',\n",
|
| 170 |
+
" '6e7c28c93c0f45fabf359a37558450a7',\n",
|
| 171 |
+
" '1e6c708f7e024f4ea9c4114aba3d39eb',\n",
|
| 172 |
+
" 'd63ceec42e1d4188ace96187b2de2491',\n",
|
| 173 |
+
" '35a3ebe08b74448dbd3d425fd92182a6',\n",
|
| 174 |
+
" 'f949266e46ba457984bd968394e23983',\n",
|
| 175 |
+
" 'd08e7c4cc3904af48b81d0a9cdbe99ab',\n",
|
| 176 |
+
" '23e52cd551754101a800b8be42b8d30d',\n",
|
| 177 |
+
" 'bd83e712f96c42c6aaef5f1ef7ccd508',\n",
|
| 178 |
+
" '7967214a196949d5be133e36a4a7893f',\n",
|
| 179 |
+
" '8d101c958c554ad98adf5464e8205ce2',\n",
|
| 180 |
+
" '6cbdbf243701460aa8730de3d7597c0c',\n",
|
| 181 |
+
" '6853b03d0c21430cb2f83a5adb958dfa',\n",
|
| 182 |
+
" '5848b5ecd63e41e1823e4295764b4bf4',\n",
|
| 183 |
+
" '6d394fdbf729441188acf40693686e23',\n",
|
| 184 |
+
" '64e7ef83b6e24d9fba29d6897aa2841b',\n",
|
| 185 |
+
" 'e400c6799db24c6aa24e63b3591ce314',\n",
|
| 186 |
+
" '7effb05dcab446eebf67c59b04a7b302',\n",
|
| 187 |
+
" '32e7572888784769ad2cf55a63421ad1',\n",
|
| 188 |
+
" 'cdd1c7d4b0844562b325081db6ab412a',\n",
|
| 189 |
+
" '9b8f34ca57e74c0ca4e4305df5f65e97',\n",
|
| 190 |
+
" '075c9f42a8a64662a28a3cfe612fd30e',\n",
|
| 191 |
+
" '21f78d3aa41d47bf86a351807227de89',\n",
|
| 192 |
+
" '75e2b201947c4ae09fb9698b01f90fa7',\n",
|
| 193 |
+
" 'dcc672f90a0d49a3abde47b1085ca029',\n",
|
| 194 |
+
" '678180e014b3482b9fa7d0cbfaeba594',\n",
|
| 195 |
+
" 'c2fc4ebcfb7247e0bd168ddfb07e240e',\n",
|
| 196 |
+
" 'ec876b83046a45f69e97b29750b869f1',\n",
|
| 197 |
+
" 'b612d0b9412f4e75b6d3de22c530b1d0',\n",
|
| 198 |
+
" 'fb0a02073c854bb896811928d15d14db',\n",
|
| 199 |
+
" 'd7c4580ed3f24013b7b2ff8009edeaa9',\n",
|
| 200 |
+
" 'd2b4eff37c8c4ce894842e16d8b13218',\n",
|
| 201 |
+
" '638a3bcd233048ec87ab51cf326f1638',\n",
|
| 202 |
+
" 'e18f89c58ff749d8a12430e7765dba60',\n",
|
| 203 |
+
" '4069ccc54643465c84fcf64a066d9cd6',\n",
|
| 204 |
+
" 'fcd55d6bd8df4ebf85f59ba52fef925a',\n",
|
| 205 |
+
" '47477dc9b2414f17998c9fc4e8ca24c8',\n",
|
| 206 |
+
" '1ce77e75f0b14618aa740159246f9921',\n",
|
| 207 |
+
" 'd9248d6b26e0439c8cb5ee0960a86512',\n",
|
| 208 |
+
" '1a8282698e7346e5a9a81f381e496b08']"
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
"execution_count": 27,
|
| 212 |
+
"metadata": {},
|
| 213 |
+
"output_type": "execute_result"
|
| 214 |
+
}
|
| 215 |
+
],
|
| 216 |
+
"source": [
|
| 217 |
+
"client.add(\n",
|
| 218 |
+
" collection_name=\"knowledge-base\",\n",
|
| 219 |
+
" documents=document\n",
|
| 220 |
+
")"
|
| 221 |
+
]
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"cell_type": "code",
|
| 225 |
+
"execution_count": null,
|
| 226 |
+
"metadata": {},
|
| 227 |
+
"outputs": [],
|
| 228 |
+
"source": []
|
| 229 |
+
}
|
| 230 |
+
],
|
| 231 |
+
"metadata": {
|
| 232 |
+
"kernelspec": {
|
| 233 |
+
"display_name": "Python 3",
|
| 234 |
+
"language": "python",
|
| 235 |
+
"name": "python3"
|
| 236 |
+
},
|
| 237 |
+
"language_info": {
|
| 238 |
+
"codemirror_mode": {
|
| 239 |
+
"name": "ipython",
|
| 240 |
+
"version": 3
|
| 241 |
+
},
|
| 242 |
+
"file_extension": ".py",
|
| 243 |
+
"mimetype": "text/x-python",
|
| 244 |
+
"name": "python",
|
| 245 |
+
"nbconvert_exporter": "python",
|
| 246 |
+
"pygments_lexer": "ipython3",
|
| 247 |
+
"version": "3.10.4"
|
| 248 |
+
}
|
| 249 |
+
},
|
| 250 |
+
"nbformat": 4,
|
| 251 |
+
"nbformat_minor": 2
|
| 252 |
+
}
|
summ_texts.txt
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Istanbul AJWA Sultanahmet AJWA The hotel
|
| 2 |
+
Istanbul Cheers Lighthouse Cheers Cheers
|
| 3 |
+
Istanbul Conrad Istanbul Bosphorus Conrad Istanbul Everything was
|
| 4 |
+
Istanbul Demiray Hotel&Spa Demir Eva B
|
| 5 |
+
Istanbul Elite World Grand 陌stanbul Bas谋n Ekspres Elite World The hotel
|
| 6 |
+
Istanbul Hilton Istanbul Bomonti Hotel & Conference Center Hilton Istanbul Hilton bom
|
| 7 |
+
Istanbul Hotel Amira Istanbul Hotel Am Hotel Am
|
| 8 |
+
Istanbul Hotel Yasmak Sultan Yasm Yasm
|
| 9 |
+
Istanbul InterContinental Istanbul InterContin Ceylan
|
| 10 |
+
Istanbul Mula Hotel Mula Mula
|
| 11 |
+
Istanbul MySuite Istanbul All suites My Suite
|
| 12 |
+
Istanbul Pell Palace Hotel Spa Pell Palace The dining
|
| 13 |
+
Istanbul Pera Palace Hotel Pera The hotel
|
| 14 |
+
Istanbul Primero Hotel No description Primero
|
| 15 |
+
Istanbul Radisson Blu Hotel Istanbul Ottomare Radisson Reception
|
| 16 |
+
Istanbul Ramada by Wyndham Istanbul Old City Ramada Hotel Ram
|
| 17 |
+
Istanbul Richmond Istanbul Richmond Istanbul The worst
|
| 18 |
+
Istanbul Romance Istanbul Hotel Romance Istanbul Romance Istanbul
|
| 19 |
+
Istanbul Sirkeci Mansion Konak Sirke
|
| 20 |
+
Istanbul Skalion Hotel & Spa Skalion The hotel
|
| 21 |
+
Istanbul Sura Hagia Sophia Hotel Sura The bed
|
| 22 |
+
Istanbul Swissotel The Bosphorus, Istanbul Swissot Swiss么
|
| 23 |
+
Istanbul The Story Hotel Pera The Story Hotel Story
|
| 24 |
+
Istanbul Tomtom Suites Tomtom Tomtom
|
| 25 |
+
Istanbul White House Hotel Istanbul White House White House
|
| 26 |
+
Istanbul Wyndham Grand Istanbul Kalamis Marina Hotel Anti allergic The restaurant
|
| 27 |
+
Istanbul Wyndham Istanbul Oldcity Wynd Hotel Istanbul
|
| 28 |
+
Istanbul YOTEL Istanbul Airport Hotel (Landside) Istanbul Airport Yot
|
| 29 |
+
New York City Ace Hotel New York Reception - Ace Hotel NYC. The Ace
|
| 30 |
+
New York City Ameritania At Times Square The Amer The Amer
|
| 31 |
+
New York City Arlo SoHo Arlo Hotel is
|
| 32 |
+
New York City Courtyard by Marriott New York Manhattan / Midtown East Courtyard HV
|
| 33 |
+
New York City Crowne Plaza Times Square Manhattan, an IHG Hotel Stay steps The Crown
|
| 34 |
+
New York City Dream Downtown Dream Downtown Hotel has
|
| 35 |
+
New York City Hampton Inn Manhattan / Times Square Central Hampton Inn The hotel
|
| 36 |
+
New York City Hilton New York Times Square No description Hotel is
|
| 37 |
+
New York City Homewood Suites by Hilton New York/Midtown Manhattan Times Square-South, NY The Hom The breakfast
|
| 38 |
+
New York City Hotel Edison Hotel Edison Hotel Edison
|
| 39 |
+
New York City Hotel Riu Plaza New York Times Square El Hotel The hotel
|
| 40 |
+
New York City Hyatt Grand Central New York Hyatt Hotel is
|
| 41 |
+
New York City Margaritaville Resort Times Square Margar Front desk
|
| 42 |
+
New York City Motto by Hilton New York City Chelsea Towering The hotel
|
| 43 |
+
New York City Moxy NYC East Village Designed for The M
|
| 44 |
+
New York City Moxy NYC Times Square Moxy Moxy
|
| 45 |
+
New York City Paramount Hotel Times Square Paramount Hotel Location is
|
| 46 |
+
New York City Park Central Hotel New York No description Park Central
|
| 47 |
+
New York City Pod 51 Hotel Pod 51 Pod 51
|
| 48 |
+
New York City Pod Times Square Pod Times Pod is
|
| 49 |
+
New York City Sanctuary Hotel New York Sanctuary Hotel The Sanctuary
|
| 50 |
+
New York City Tempo by Hilton New York Times Square No description Hotel rooms
|
| 51 |
+
New York City The Bryant Park Hotel The Bryant The Bryant
|
| 52 |
+
New York City The Empire Hotel The Empire The Empire
|
| 53 |
+
New York City The FIDI Hotel FID Fidi
|
| 54 |
+
New York City The Knickerbocker The Kn The Kn
|
| 55 |
+
New York City The Manhattan at Times Square Hotel Manhattan at The Manhattan
|
| 56 |
+
New York City The New Yorker, A Wyndham Hotel The New The New
|
| 57 |
+
New York City The Plaza New York - A Fairmont Managed Hotel The Plaza Afternoon
|
| 58 |
+
New York City Warwick New York Warwick New The Warwick
|
| 59 |
+
San Francisco Argonaut Hotel The Argon The Argon
|
| 60 |
+
San Francisco Axiom Hotel Axiom The Ax
|
| 61 |
+
San Francisco BEI San Francisco, Trademark Collection by Wyndham BEI BEI
|
| 62 |
+
San Francisco Beacon Grand A Union Square Hotel No description The Beacon
|
| 63 |
+
San Francisco Chancellor Hotel on Union Square The Chancellor Hotel is
|
| 64 |
+
San Francisco Cow Hollow Inn and Suites No description The hotel
|
| 65 |
+
San Francisco Fairmont San Francisco Fairmont The Fair
|
| 66 |
+
San Francisco Grant Plaza Hotel Grant Plaza The hotel
|
| 67 |
+
San Francisco Hilton San Francisco Financial District No description The hotel
|
| 68 |
+
San Francisco Hotel Caza Fisherman's Wharf Hotel C Hotel C
|
| 69 |
+
San Francisco Hotel Emblem San Francisco Hotel Emblem Free sang
|
| 70 |
+
San Francisco Hotel Griffon Hotel Griff Hotel Griff
|
| 71 |
+
San Francisco Hotel Nikko San Francisco Hotel Nik Hotel Nik
|
| 72 |
+
San Francisco Hotel Riu Plaza Fisherman鈥檚 Wharf The R RIU
|
| 73 |
+
San Francisco Hotel Zephyr San Francisco Historic Fisher Hotel Z
|
| 74 |
+
San Francisco Hotel Zoe Fisherman's Wharf Hotel Zoe Hotel Zoe
|
| 75 |
+
San Francisco Hyatt Centric Fisherman's Wharf San Francisco Located in Front desk
|
| 76 |
+
San Francisco Hyatt Place San Francisco Downtown The Hy Free breakfast
|
| 77 |
+
San Francisco Hyatt Regency San Francisco The 8 The hotel
|
| 78 |
+
San Francisco Hyatt Regency San Francisco Downtown SOMA Hyatt The hotel
|
| 79 |
+
San Francisco LUMA Hotel San Francisco LUMA LUMA
|
| 80 |
+
San Francisco Marriott Marquis San Francisco Marriott Marqu Hotel may
|
| 81 |
+
San Francisco Parc 55 San Francisco - a Hilton Hotel No description Stayed
|
| 82 |
+
San Francisco San Francisco Marriott Fisherman's Wharf Fisherman The hotel
|
| 83 |
+
San Francisco San Remo Hotel North Beach The San
|
| 84 |
+
San Francisco Stanford Court San Francisco Stanford Court The Stanford
|
| 85 |
+
San Francisco Stanyan Park Hotel The St Stany
|
| 86 |
+
San Francisco Staypineapple - An Elegant Hotel Staypine Staypine
|
| 87 |
+
San Francisco The Donatello Located in Hotel is
|
| 88 |
+
San Francisco The Westin St. Francis San Francisco on Union Square The West The West
|
| 89 |
+
Paris Best Western Plus La Demeure Best Western The room
|
| 90 |
+
Paris Citadines Tour Eiffel Paris No description Hotel is
|
| 91 |
+
Paris Cler Hotel Le Cl Hotel Cl
|
| 92 |
+
Paris Grand Hotel Malher The Grand Hotel is
|
| 93 |
+
Paris Grand Hotel du Palais Royal Grand H Hotel is
|
| 94 |
+
Paris Hotel 34B - Astotel Hotel 34 Hotel 34
|
| 95 |
+
Paris Hotel Astoria - Astotel Astoria Astoria
|
| 96 |
+
Paris Hotel B55 No description Hotel B
|
| 97 |
+
Paris Hotel Campanile Paris Bercy Village Campan The hotel
|
| 98 |
+
Paris Hotel Europe Saint Severin The hotel Hotel Europe
|
| 99 |
+
Paris Hotel Joke - Astotel Located in Joke
|
| 100 |
+
Paris Hotel La Comtesse No description Hotel La
|
| 101 |
+
Paris Hotel Maison Mere Maison Maison
|
| 102 |
+
Paris Hotel Malte - Astotel Hotel Malta Hotel is
|
| 103 |
+
Paris Hotel Marignan Champs-Elysees Hotel Mar Hotel Mar
|
| 104 |
+
Paris Hotel Moliere 4* Hotel Mol
|
| 105 |
+
Paris Hotel Piapia The P Piap
|
| 106 |
+
Paris Hotel Square Louvois The spa The Square
|
| 107 |
+
Paris Hotel Tourisme Avenue Hotel Tourism Hotel Tourism
|
| 108 |
+
Paris Hotel des Arts - Montmartre Hotel des Hotel des
|
| 109 |
+
Paris Hotel du Danube Saint Germain A charming Hotel du
|
| 110 |
+
Paris Hotel du Printemps Hotel du Hotel du
|
| 111 |
+
Paris La Maison Favart La Ma The Ma
|
| 112 |
+
Paris Novotel Paris Les Halles The Nov Novot
|
| 113 |
+
Paris Passy Eiffel Hotel Passy Hotel Pass
|
| 114 |
+
Paris Pullman Paris Eiffel Tower Hotel The Pull The hotel
|
| 115 |
+
Paris St Christopher's Gare du Nord Paris Award winning If you
|
| 116 |
+
Paris St Christopher's Inn Canal Paris Hostel St Christopher
|
| 117 |
+
Paris The People - Paris Belleville Les P The People
|
| 118 |
+
Paris citizenM Paris Champs-Elysees CitizenM CitizenM
|
| 119 |
+
London Canopy by Hilton London City Canopy The Can
|
| 120 |
+
London Holiday Inn London - West, an IHG Hotel Holiday Inn Location is
|
| 121 |
+
London Leonardo Royal Hotel London Tower Bridge No description Hotel le
|
| 122 |
+
London Novotel London Blackfriars Novot Novot
|
| 123 |
+
London Palmers Lodge Swiss Cottage No description Hostel
|
| 124 |
+
London Park Grand London Hyde Park No description The Park
|
| 125 |
+
London Park Grand London Kensington Park Grand Park Grand
|
| 126 |
+
London Park Grand Paddington Court Park Grand Reception
|
| 127 |
+
London Park Plaza Westminster Bridge London Park Plaza Park Plaza
|
| 128 |
+
London Royal National Hotel No description Room is
|
| 129 |
+
London St. Athans Hotel The St St.
|
| 130 |
+
London Strand Palace Strand Strand
|
| 131 |
+
London The Chesterfield Mayfair The Chester The Chester
|
| 132 |
+
London The Clermont London, Charing Cross Charing Hotel is
|
| 133 |
+
London The Clermont, Victoria Grade II The rooms
|
| 134 |
+
London The Gate The Gate The Gate
|
| 135 |
+
London The Montcalm Royal London House Montcal Staff at
|
| 136 |
+
London The Piccadilly London West End Modern hotel The hotel
|
| 137 |
+
London The Resident Covent Garden The Resident The Resident
|
| 138 |
+
London The Royal Horseguards Five- Staff at
|
| 139 |
+
London The Tower Hotel The Tower Reviewer
|
| 140 |
+
London Travelodge London Central City Road No description Staff very
|
| 141 |
+
London Travelodge London Central Kings Cross No description Stayed
|
| 142 |
+
London Travelodge London City hotel No description Staff at
|
| 143 |
+
London Travelodge London Covent Garden Hotel in Hotel is
|
| 144 |
+
London Travelodge London Docklands Central No description Hotel was
|
| 145 |
+
London Travelodge London Excel No description Service in
|
| 146 |
+
London Travelodge London Kings Cross Royal Scot Six- The ub
|
| 147 |
+
London Wilde Aparthotels, London, Aldgate Tower Bridge 156- Wilde A
|
| 148 |
+
London ibis London Canning Town The Sweet Located near
|