Spaces:
Runtime error
Runtime error
Adds application files
Browse files- .gitignore +160 -0
- LICENSE +21 -0
- app.py +115 -0
- cache/text-embedding-3-small954df814-8333-5939-8060-cfa363855605 +1 -0
- chainlit.md +14 -0
- requirements.txt +11 -0
.gitignore
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Byte-compiled / optimized / DLL files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[cod]
|
| 4 |
+
*$py.class
|
| 5 |
+
|
| 6 |
+
# C extensions
|
| 7 |
+
*.so
|
| 8 |
+
|
| 9 |
+
# Distribution / packaging
|
| 10 |
+
.Python
|
| 11 |
+
build/
|
| 12 |
+
develop-eggs/
|
| 13 |
+
dist/
|
| 14 |
+
downloads/
|
| 15 |
+
eggs/
|
| 16 |
+
.eggs/
|
| 17 |
+
lib/
|
| 18 |
+
lib64/
|
| 19 |
+
parts/
|
| 20 |
+
sdist/
|
| 21 |
+
var/
|
| 22 |
+
wheels/
|
| 23 |
+
share/python-wheels/
|
| 24 |
+
*.egg-info/
|
| 25 |
+
.installed.cfg
|
| 26 |
+
*.egg
|
| 27 |
+
MANIFEST
|
| 28 |
+
|
| 29 |
+
# PyInstaller
|
| 30 |
+
# Usually these files are written by a python script from a template
|
| 31 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 32 |
+
*.manifest
|
| 33 |
+
*.spec
|
| 34 |
+
|
| 35 |
+
# Installer logs
|
| 36 |
+
pip-log.txt
|
| 37 |
+
pip-delete-this-directory.txt
|
| 38 |
+
|
| 39 |
+
# Unit test / coverage reports
|
| 40 |
+
htmlcov/
|
| 41 |
+
.tox/
|
| 42 |
+
.nox/
|
| 43 |
+
.coverage
|
| 44 |
+
.coverage.*
|
| 45 |
+
.cache
|
| 46 |
+
nosetests.xml
|
| 47 |
+
coverage.xml
|
| 48 |
+
*.cover
|
| 49 |
+
*.py,cover
|
| 50 |
+
.hypothesis/
|
| 51 |
+
.pytest_cache/
|
| 52 |
+
cover/
|
| 53 |
+
|
| 54 |
+
# Translations
|
| 55 |
+
*.mo
|
| 56 |
+
*.pot
|
| 57 |
+
|
| 58 |
+
# Django stuff:
|
| 59 |
+
*.log
|
| 60 |
+
local_settings.py
|
| 61 |
+
db.sqlite3
|
| 62 |
+
db.sqlite3-journal
|
| 63 |
+
|
| 64 |
+
# Flask stuff:
|
| 65 |
+
instance/
|
| 66 |
+
.webassets-cache
|
| 67 |
+
|
| 68 |
+
# Scrapy stuff:
|
| 69 |
+
.scrapy
|
| 70 |
+
|
| 71 |
+
# Sphinx documentation
|
| 72 |
+
docs/_build/
|
| 73 |
+
|
| 74 |
+
# PyBuilder
|
| 75 |
+
.pybuilder/
|
| 76 |
+
target/
|
| 77 |
+
|
| 78 |
+
# Jupyter Notebook
|
| 79 |
+
.ipynb_checkpoints
|
| 80 |
+
|
| 81 |
+
# IPython
|
| 82 |
+
profile_default/
|
| 83 |
+
ipython_config.py
|
| 84 |
+
|
| 85 |
+
# pyenv
|
| 86 |
+
# For a library or package, you might want to ignore these files since the code is
|
| 87 |
+
# intended to run in multiple environments; otherwise, check them in:
|
| 88 |
+
# .python-version
|
| 89 |
+
|
| 90 |
+
# pipenv
|
| 91 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
| 92 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
| 93 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
| 94 |
+
# install all needed dependencies.
|
| 95 |
+
#Pipfile.lock
|
| 96 |
+
|
| 97 |
+
# poetry
|
| 98 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
| 99 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 100 |
+
# commonly ignored for libraries.
|
| 101 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
| 102 |
+
#poetry.lock
|
| 103 |
+
|
| 104 |
+
# pdm
|
| 105 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
| 106 |
+
#pdm.lock
|
| 107 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
| 108 |
+
# in version control.
|
| 109 |
+
# https://pdm.fming.dev/#use-with-ide
|
| 110 |
+
.pdm.toml
|
| 111 |
+
|
| 112 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
| 113 |
+
__pypackages__/
|
| 114 |
+
|
| 115 |
+
# Celery stuff
|
| 116 |
+
celerybeat-schedule
|
| 117 |
+
celerybeat.pid
|
| 118 |
+
|
| 119 |
+
# SageMath parsed files
|
| 120 |
+
*.sage.py
|
| 121 |
+
|
| 122 |
+
# Environments
|
| 123 |
+
.env
|
| 124 |
+
.venv
|
| 125 |
+
env/
|
| 126 |
+
venv/
|
| 127 |
+
ENV/
|
| 128 |
+
env.bak/
|
| 129 |
+
venv.bak/
|
| 130 |
+
|
| 131 |
+
# Spyder project settings
|
| 132 |
+
.spyderproject
|
| 133 |
+
.spyproject
|
| 134 |
+
|
| 135 |
+
# Rope project settings
|
| 136 |
+
.ropeproject
|
| 137 |
+
|
| 138 |
+
# mkdocs documentation
|
| 139 |
+
/site
|
| 140 |
+
|
| 141 |
+
# mypy
|
| 142 |
+
.mypy_cache/
|
| 143 |
+
.dmypy.json
|
| 144 |
+
dmypy.json
|
| 145 |
+
|
| 146 |
+
# Pyre type checker
|
| 147 |
+
.pyre/
|
| 148 |
+
|
| 149 |
+
# pytype static type analyzer
|
| 150 |
+
.pytype/
|
| 151 |
+
|
| 152 |
+
# Cython debug symbols
|
| 153 |
+
cython_debug/
|
| 154 |
+
|
| 155 |
+
# PyCharm
|
| 156 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
| 157 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
| 158 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
| 159 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
| 160 |
+
#.idea/
|
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2024 Michael Santo Domingo
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
app.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from typing import List
|
| 3 |
+
|
| 4 |
+
from langchain.embeddings.openai import OpenAIEmbeddings
|
| 5 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 6 |
+
from langchain.vectorstores import FAISS
|
| 7 |
+
from langchain.chains import (
|
| 8 |
+
ConversationalRetrievalChain,
|
| 9 |
+
)
|
| 10 |
+
from langchain.document_loaders import PyPDFLoader
|
| 11 |
+
from langchain.chat_models import ChatOpenAI
|
| 12 |
+
from langchain.prompts.chat import (
|
| 13 |
+
ChatPromptTemplate,
|
| 14 |
+
SystemMessagePromptTemplate,
|
| 15 |
+
HumanMessagePromptTemplate,
|
| 16 |
+
)
|
| 17 |
+
from langchain.docstore.document import Document
|
| 18 |
+
from langchain.memory import ChatMessageHistory, ConversationBufferMemory
|
| 19 |
+
from dotenv import load_dotenv
|
| 20 |
+
|
| 21 |
+
import chainlit as cl
|
| 22 |
+
|
| 23 |
+
load_dotenv()
|
| 24 |
+
|
| 25 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=100)
|
| 26 |
+
|
| 27 |
+
system_template = """Answer the question based only on the following context. If you cannot answer the question with the context, please respond with 'I don't know':
|
| 28 |
+
|
| 29 |
+
Context:
|
| 30 |
+
{context}
|
| 31 |
+
|
| 32 |
+
Question:
|
| 33 |
+
{question}
|
| 34 |
+
----------------
|
| 35 |
+
{summaries}"""
|
| 36 |
+
messages = [
|
| 37 |
+
SystemMessagePromptTemplate.from_template(system_template),
|
| 38 |
+
HumanMessagePromptTemplate.from_template("{question}"),
|
| 39 |
+
]
|
| 40 |
+
prompt = ChatPromptTemplate.from_messages(messages)
|
| 41 |
+
chain_type_kwargs = {"prompt": prompt}
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
@cl.on_chat_start
|
| 45 |
+
async def on_chat_start():
|
| 46 |
+
msg = cl.Message(
|
| 47 |
+
content=f"Processing Nvidia.pdf...", disable_human_feedback=True
|
| 48 |
+
)
|
| 49 |
+
await msg.send()
|
| 50 |
+
|
| 51 |
+
# Load PDF directly from local data directory
|
| 52 |
+
pypdf_loader = PyPDFLoader("data/nvidia.pdf")
|
| 53 |
+
texts = pypdf_loader.load_and_split()
|
| 54 |
+
texts = [text.page_content for text in texts]
|
| 55 |
+
|
| 56 |
+
# Create metadata for each chunk
|
| 57 |
+
metadatas = [{"source": f"{i}-pl"} for i in range(len(texts))]
|
| 58 |
+
|
| 59 |
+
# Create a FAISS vectorstore
|
| 60 |
+
embeddings = OpenAIEmbeddings()
|
| 61 |
+
docsearch = await cl.make_async(FAISS.from_texts)(
|
| 62 |
+
texts, embeddings, metadatas=metadatas
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
message_history = ChatMessageHistory()
|
| 66 |
+
|
| 67 |
+
memory = ConversationBufferMemory(
|
| 68 |
+
memory_key="chat_history",
|
| 69 |
+
output_key="answer",
|
| 70 |
+
chat_memory=message_history,
|
| 71 |
+
return_messages=True,
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
# Create a chain that uses the FAISS vectorstore
|
| 75 |
+
chain = ConversationalRetrievalChain.from_llm(
|
| 76 |
+
ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0, streaming=True),
|
| 77 |
+
chain_type="stuff",
|
| 78 |
+
retriever=docsearch.as_retriever(),
|
| 79 |
+
memory=memory,
|
| 80 |
+
return_source_documents=True,
|
| 81 |
+
)
|
| 82 |
+
|
| 83 |
+
# Let the user know that the system is ready
|
| 84 |
+
msg.content = f"Processing Nvidia.pdf done. You can now ask questions!"
|
| 85 |
+
await msg.update()
|
| 86 |
+
|
| 87 |
+
cl.user_session.set("chain", chain)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
@cl.on_message
|
| 91 |
+
async def main(message):
|
| 92 |
+
chain = cl.user_session.get("chain") # type: ConversationalRetrievalChain
|
| 93 |
+
cb = cl.AsyncLangchainCallbackHandler()
|
| 94 |
+
|
| 95 |
+
res = await chain.acall(message.content, callbacks=[cb])
|
| 96 |
+
answer = res["answer"]
|
| 97 |
+
source_documents = res["source_documents"] # type: List[Document]
|
| 98 |
+
|
| 99 |
+
text_elements = [] # type: List[cl.Text]
|
| 100 |
+
|
| 101 |
+
if source_documents:
|
| 102 |
+
for source_idx, source_doc in enumerate(source_documents):
|
| 103 |
+
source_name = f"source_{source_idx}"
|
| 104 |
+
# Create the text element referenced in the message
|
| 105 |
+
text_elements.append(
|
| 106 |
+
cl.Text(content=source_doc.page_content, name=source_name)
|
| 107 |
+
)
|
| 108 |
+
source_names = [text_el.name for text_el in text_elements]
|
| 109 |
+
|
| 110 |
+
if source_names:
|
| 111 |
+
answer += f"\nSources: {', '.join(source_names)}"
|
| 112 |
+
else:
|
| 113 |
+
answer += "\nNo sources found"
|
| 114 |
+
|
| 115 |
+
await cl.Message(content=answer, elements=text_elements).send()
|
cache/text-embedding-3-small954df814-8333-5939-8060-cfa363855605
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[0.015368305316403378, -0.0347788151468864, -0.00936840484950907, 0.014480605881380199, 0.007355228147666745, 0.01434586585508722, -0.052279186081030084, 0.04923564250002893, -0.01360083107023193, 0.015122602860732505, 0.008274631666125088, 0.0328448977223094, -0.04175360174391188, -0.015431712551951119, 0.02030613668334887, 0.06340713869019052, -0.04555802842619556, 0.02702729433818339, -0.00773170831769314, 0.018673403394792985, 0.07437657647011066, 0.014829345211231472, -0.01666022669295066, -0.030704908412016764, 0.04013672142839616, -0.01494030764060937, 0.0030970424755681386, -0.011762024033315244, 0.027455291082654817, -0.05893693556899428, 0.044860549766493014, -0.042546190791274745, 0.0036677066641752076, -0.018150294400016073, -0.018388070369166863, 0.056432355818455376, 0.024712933500319955, 0.0031029868747969084, 0.025759151489873774, 0.02686877578365275, -0.0035983552622293447, 0.028881952485495074, -0.028406398684548324, 0.03699806745973469, 0.0242373796993732, 0.020131767018423233, -0.031957198287286215, 0.02363501142733097, 0.02079754159469062, 0.054783769556859326, -0.03747361939803628, -0.0314657915132993, -0.032337639837927486, 0.07995640574773104, -0.03798087728241819, 0.005445088320004822, -0.02322286579325454, 0.015170158054562663, 0.003408133788416773, -0.00663793513430916, -0.016406597750759703, -0.02550552254768282, 0.035412889365008964, -0.005655124380303077, -0.00999455071846638, 0.01998910143693276, 0.0019160844597213397, 0.037441917177246285, 0.03836131883305946, 0.015400009399838542, -0.026203001207385366, 0.04175360174391188, -0.02956357817215746, -0.003806409933728226, -0.029769651920518257, 0.04622380486510812, -0.031798679732755575, 0.012324762666724814, 0.006352603040005626, 0.009495219320604547, -0.021685241029713802, 0.016850447468271294, -0.01060484454570611, -0.024015454840617404, -0.02128894650603237, -0.051137857703815945, 0.006158418555763658, -0.006923267228612694, -0.005143904183983706, -0.04574825292680654, -0.007216525343775019, -0.0069589336239853136, -0.016248079196229063, -0.01884777305971862, 0.06543617022771818, 0.002686877531799146, 0.010858472556574482, 0.0011968098247337334, -0.014179421745359083, 0.0328448977223094, 0.014385494562397296, -0.0480943141228148, -0.03966116576480424, 0.012197948195629336, 0.02303264315528874, 0.0758983501232564, 0.002663099934884067, -0.010224401132419673, -0.02525189360549186, 0.044860549766493014, -0.02116213389758206, -0.050155047881132446, 0.0008460890478754234, 0.019355029081455366, -0.004715906042528404, 0.007077822074222001, 0.025632337018778296, -0.10195867829857061, 0.01808688623314575, -0.02983306008738858, -0.024919005386035583, -0.009352552807791488, 0.03168771823470026, -0.02869173171017444, -0.004597017592291716, 0.023524048066630488, -0.02808936343813221, 0.010660325294733765, -0.0034774854231932823, -0.01418734730055658, 0.02322286579325454, -0.025473818464247656, 0.028295435323847838, -0.02436419417046868, -0.0412780498056103, 0.034810521092966736, -0.027693068914450777, -0.043719221389278876, -0.010802991807546824, 0.022224202997530876, 0.033954523878733545, -0.016065783976105925, 0.03176697751196558, -0.006772675160602136, 0.03316193483137068, 0.00917818314286585, 0.002877099005611718, -0.019545251719421168, 0.004799128097392473, -0.034969035922207035, 0.030229354611070014, 0.006055381681583259, -0.017643036515634158, 0.008036854765651712, -0.0064913058438973515, -0.06949422585219282, 0.012404021943990136, -0.005722494393449566, -0.047840688905914176, 0.0065269727049312625, -0.017769850986729636, 0.004652498806980665, -0.028232029019622684, -0.009661662499010102, -0.046667654582619705, 0.0098677362473709, -0.06169514798701448, 0.02160598361509365, -0.09986624231946296, 0.01819784959384623, -0.023460641762405334, 0.03165601601391027, -0.06115618788184257, 0.03883687449665138, 0.0207182823174253, -0.026932182087877905, 0.007327487773152917, -0.05985634095009779, -0.06404121290831308, 0.00875811102226934, 0.014559864227322934, 0.06213899770452607, -0.04625550708589811, -0.0025600632935343136, -0.0277723281917161, 0.011698617729090088, -0.04058057114590775, 0.03408133648718385, 0.027122404725843707, -0.039249018268082636, -0.010826769404461905, 0.021352354672902692, 0.012530836415085614, 0.024063010034447562, 0.03547629380658895, -0.05116956364989628, -0.010692029378168927, 0.005758160788822185, -0.048823498728597675, -0.00497746053991686, -0.0365542177422231, -0.05269133357775168, 0.04289493012112602, -0.034271560987794825, 0.0007217516038174707, -0.048347943065005755, -0.023397235458180177, 0.03024520572146501, 0.01957695394021116, -0.028184473825792526, 0.018102739206185915, -0.032496158392458126, 0.02273145901926762, -0.008242928514012511, -0.04891860911625799, -0.007929855113872564, 0.0008337048440103787, 0.022366868579021353, 0.003085153677110599, 0.01843562556299702, -0.07069896239627728, -0.004541536377602767, 0.0676554150899858, 0.02885024840205991, 0.03826620844539914, 0.05186704230959883, -0.015954822478050613, -0.03943924276869361, -0.0038083913225276005, -0.06860652641716963, -0.022747311992307787, 0.011904690546128303, -0.023856936286086764, -0.054625251002328686, 0.0016981224949796168, -0.0059999004668943095, 0.032337639837927486, 0.023571605123105816, 0.010121364258239273, -0.05500569255296995, -0.02371427070459629, -0.018911179363943775, 0.008536186163513544, 0.02517263432822654, 0.016739484107570812, 0.030213501638029848, 0.030609796161711278, 0.0024590080409839345, 0.00033932726739295256, 0.021986425165734916, 0.0003279338161352566, -0.0028988952137274223, -0.04080249414201837, 0.009693366582445264, 0.04058057114590775, -0.024491008641564158, -0.02444345158508883, -0.0015128547259961275, 0.004755535681161064, -0.01317283339443792, -0.0447654393788327, -0.013141129311002758, -0.012879575744936887, 0.010462178032893048, -0.038614947775250416, -0.01487690040506163, 0.012007727420308702, 0.02930995109261167, 0.02197057405533992, -0.003685540094692163, -0.016565114442645173, -0.05465695322311868, 0.022430274883246507, -0.011207211886425756, -0.05896864151507461, -0.023048496128328905, 0.05380095973417583, 0.029357506286441827, 0.00332491196638335, 0.04974290038441085, -0.034430075817035125, -0.02574329851683361, -0.009836032163935738, -0.006974785200041602, -0.007109525691995871, 0.03190964495610123, -0.0016287708602031076, -0.024253230809768198, -0.03547629380658895, 0.0012453558293789022, 0.029737947837083094, -0.06217069992531606, 0.04130975202640029, -0.011460840828616713, -0.013925792803168125, 0.04593847370212717, -0.013545350321204273, -0.04273641156659538, 0.0054371622991460315, 0.024332490087033518, 0.05877841701446364, 0.03820280027852881, -0.01490067800197671, 0.002330212413919728, -0.03129142184837366, 0.07989299385557037, -0.025061672830171227, -0.005797790427454845, -0.04746024362998257, -0.014908603557174207, 0.005706642817393277, -0.029928170475048897, -0.023777677008821444, 0.01193639369824088, -0.004256204283299233, -0.07463020168701127, -0.04375092733535921, 0.046509136028089065, 0.0013890126873456797, -0.006396195456237035, 0.02287412646340327, -0.08027344285679232, 0.03244860506127314, -0.019529398746381002, -0.04096101269654902, -0.04467032899117238, -0.011991875378591121, 0.008567890246948706, 0.03522266486439799, -0.0034497448158488076, 0.0023262494034903326, -0.009518996917519626, 0.0099707731215513, 0.006744934320427016, 0.036142070245501506, 0.021574279531658486, -0.002003269292184158, 0.05126467403755659, -0.03826620844539914, -0.029452616674102143, -0.035603110140329595, -0.02233516449558619, -0.04910882989157862, -0.010232327618939756, 0.026171297123950204, 0.01260216920583085, 0.00387179855807534, 0.03569822052798991, 0.030958535491562553, 0.04644573158650908, 0.006392232212976993, 0.010208549090702092, 0.015946895060207945, 0.045653142539146215, 0.0001219844357193301, -0.042007230686102834, 0.035127554476737675, -0.041531675022510914, 0.0005032941754605808, 0.0656897954446188, -0.012229652279064498, 0.031117054046093193, 0.00011771188422173644, 0.04441670004898142, -0.04853816384032639, 0.01816614551041107, -0.029405061480271985, -0.003741021309381112, -0.019196512389569893, -0.01916480830613473, -0.0027066923511154762, -0.002928617209871271, -0.005393569882914622, 0.037156582288975, -0.012895426855331883, 0.050440379044113394, -0.004704017244070865, 0.011334026357521234, 0.0232704209870847, 0.06064892999746066, -0.00036731557744117956, 0.017975924735090434, -0.010470103588090546, -0.036110368024711514, -0.012776538870756488, 0.022351017468626357, 0.008773963063986921, -0.026583442758026633, 0.02975380081012326, 0.019370882054495532, 0.019323324998020204, 0.010501807671525708, -0.007549412631908713, 0.027090700642408545, 0.02764551372062062, -0.01475008593396615, 0.04096101269654902, 0.04311685684252698, 0.04010501548231583, -0.01491653004369429, -0.015867637645587795, -0.022319313385191195, -0.058746714793673646, -0.0010581066715960384, 0.0070421556788493826, 0.008607518954258781, 0.03173527529117559, -0.022430274883246507, -0.02724921919693919, -0.0211304298141469, 0.03433496542937481, -0.059888043170887785, 0.0480943141228148, 0.054466732447798046, 0.051835336363518496, -0.0055243471316088495, -0.001613909862131183, -0.03699806745973469, 0.03351067416122195, 0.00921781278149851, -0.0021380095513077813, 0.015035418028269685, -0.02642492606614116, -0.019101400139264407, -0.00501709017854952, 0.0333838578274813, 0.030023280862709213, -0.02702729433818339, -0.03595184947018087, -0.047206614687791616, -0.004442462746682409, -0.020115915908028238, -0.035603110140329595, -0.01418734730055658, 0.017452815740313526, -0.0185782911444875, -0.03319363705216067, 0.03500074186828737, 0.01581215503391497, -0.0427998197334657, 0.011857135352298145, 0.025870112987929086, -0.010216475577222175, 0.011444988786899132, -0.016517559248815015, -0.030086687166934366, 0.03183038567883591, 0.015582304619961676, 0.014108088954613844, -0.04581165736838652, 0.008995887922742717, 0.0048783869089965015, -0.03718828823505533, 0.023080198349118897, 0.024998264663300903, 0.052913256573862304, 0.04248278262440442, -0.0466993568034097, 0.0008292464863811399, -0.010588992503988528, 0.022430274883246507, 0.009986624231946297, 0.029405061480271985, -0.0408659023088887, 0.019973248463892593, -0.041246343859529966, -0.012966760577399707, -0.019450139469115682, 0.009606181749982446, 0.020623171929764983, -0.02537870807658734, 0.06752860620682583, 0.0021657501586522555, -0.008647148592891441, 0.008544111718711042, 0.011072471860132778, 0.01691385377249645, 0.019148957195739735, 0.05053548943177371, -0.07767374899330276, 0.045209289096344286, -0.0308951291873374, -0.009590329708264865, 0.03785406094867754, -0.03734680678958597, 0.0656897954446188, -0.016097488059541087, 0.05151830297974755, -0.03680784295912372, -0.019275769804190046, 0.0465408419741694, 0.06759201064840581, 0.01933917797106037, -0.02173279808618913, -0.009653736943812604, -0.013735572027847491, -0.013053945409862525, -0.015352454206008382, 0.007929855113872564, -0.01840392147956186, 0.001507901021167045, -0.022351017468626357, -0.042546190791274745, -0.009011739964460298, 0.049838010772071166, 0.009503144875802045, -0.03200475534376154, -0.011262693566775997, -0.02431663897663852, 0.04888690317017766, 0.05063059981943403, -0.025077523940566223, -0.005496606291433729, 0.002829543578950913, 0.011706543284287586, -0.028263733103057846, 0.022668052715042467, 0.008282557221322586, 0.000787140169956923, -0.02537870807658734, 0.03149749745937963, 0.008655074148088939, 0.0065745278987614205, -0.005623420762529208, 0.02837469460111316, -0.03404963426639386, -0.0007747559660918783, -0.053927772342626135, 0.008544111718711042, -0.013022241326427363, -0.02074998640086046, -0.027011441365143225, -0.05323029368292359, 0.027899140800166408, 0.01957695394021116, 0.03500074186828737, 0.018102739206185915, -0.008932480687194976, 0.026741961312557273, -0.006190122173537528, -0.0007712884192776498, 0.009075147200008037, 0.023444790652010335, 0.018546588923697503, -0.034937333701417043, 0.010795065321026741, 0.04822113045655545, 0.007917966781076317, 0.02420567561593804, 0.025315299909717016, 0.005670975956359366, 0.005516421110750059, 0.0054807547153774405, -0.014496456991775195, 0.04441670004898142, -0.016723632997175813, 0.015003714876157108, -0.011032842221500118, -0.005250903835762854, -0.011310248760606155, -0.012665576441378591, -0.014559864227322934, 0.020163471101858396, -0.016145043253371245, -0.03259126878011844, 0.013577053473316851, -0.0035844848421417845, -0.014060532829461101, -0.033257045219030994, -0.02907217326081571, -0.0058849752599176635, 0.0033467081744990544, -0.0025184522661022787, -0.05633724543079506, -0.006146529757306118, -0.015510971829216439, -0.029896466391613735, 0.0036399660568307334, -0.030657351355541436, -0.025331152882757182, -0.0029325802203006668, -0.0003660771512339089, -0.009106850352120614, 0.004676276403895744, 0.004454351545139948, -0.006209936992853858, 0.013386832697996218, -0.014591568310758096, -0.005009164157690729, -0.001475206708993488, -0.04260959895814507, 0.016755337080610975, -0.0142666065778219, -0.027471144055694983, 0.008987962367545217, -0.019893991049272444, 0.03255956655932845, -0.040897604529678694, -0.05785901535865046, -0.002522415276531674, 0.02728092141772918, -0.035603110140329595, 0.0199415462431026, 0.0044266111706261204, 0.05148659703366722, 0.013846534457225388, -0.02412641633867272, -0.02553722476847281, 0.001547530543384382, 0.0029761726365320758, 0.031069498852263035, -0.0004384009274171414, 0.00036657252753758335, 0.018102739206185915, -0.015915192839417953, 0.012316837111527316, 0.003095061086768764, -0.015392082913318459, 0.014654975546305835, -0.032274235396347495, -0.016739484107570812, 0.019767176578176962, 0.011286471163691076, 0.03209986573142186, 0.048126020068895124, -0.01734185237961304, -0.005615494741670417, -0.012007727420308702, 0.013814830373790226, 0.0027601921770050502, 0.0017724277181698854, 0.004981423317515609, 0.01382275686031031, 0.028802693208229754, -0.019148957195739735, 0.027629660747580453, -0.017056521216632092, 0.007549412631908713, -0.0030078762543059453, -0.011619358451824768, 0.04130975202640029, 0.0032575417204062152, 0.0012730964367233765, -0.01983058288240212, 0.015217713248392821, 0.013069796520257521, -0.01723089088155773, 0.006336750998288045, -0.027312625501164343, 0.009962846635031218, -0.0005899836025158941, -0.03167186712430527, 0.0011433099988441592, -0.031640161178224935, -0.006225788568910147, -0.010961509430754881, -0.042007230686102834, -0.021986425165734916, -0.03785406094867754, -0.00921781278149851, -0.004593054814692967, 0.0156536383420295, -0.03455689215077577, -0.037441917177246285, 0.021923018861509762, 0.028232029019622684, 0.004188834270152744, 0.010731658085479002, 0.029405061480271985, -0.011223063928143337, -0.0005211274313545517, 0.012174170598714257, 0.04324366945097729, -0.013466091043938953, 0.02355575215006565, 0.010271956326249831, -0.00019282210481941245, 0.0007480061113547526, -0.0016852428857070667, -0.01366423830577967, -0.02485559908181043, 0.013434387891826376, -0.06467527967585497, -0.04333877983863761, -0.0014335957979767764, -0.03867835594212074, -0.004204685846209033, 0.0012919204452246963, 0.010382918755627728, -0.010287808367967412, -0.04191212029844252, 0.016565114442645173, 0.01149254398072929, 0.0015296972292827495, 0.016065783976105925, -0.03224252945026716, 0.012514984373368033, -0.022192498914095714, -0.0026829145213697505, -0.08769207544603905, 0.0199415462431026, -0.02002080365772275, -0.02577500260026877, 0.00011201515131693076, -0.035412889365008964, -0.04115123347186965, -0.00017672263688447117, -0.006725119966771978, 0.0398830924862052, 0.0002925149779472366, -0.02387278739648176, -0.013735572027847491, 0.010533510823638287, 0.004648536029381916, 0.02683707170021759, 0.02485559908181043, -0.022430274883246507, -0.025156783217831543, 0.021954722944944924, -0.002994005834218385, -0.003077227656251808, 0.0027760437530613387, -0.02128894650603237, 0.002106305933533912, -0.005801753205053594, -0.014488531436577697, 0.024617821250014466, 0.015820080589112467, 0.013933719289688208, 0.02204983333260524, -0.011032842221500118, 0.019450139469115682, -0.006966859644844104, -0.006859859993064955, 0.0065586758570438395, -0.012150393001799178, -0.03994649692778519, 0.011032842221500118, -0.03490563148062705, 0.00863129655117386, 0.023777677008821444, -0.021336501699862526, 0.006182196152678738, 0.02743943997225982, -0.02602863154245973, -0.0033962449899592336, -0.029928170475048897, -0.020496357458669505, 0.00663793513430916, 0.03398622609952354, -0.03351067416122195, 0.0156536383420295, -0.016977261939366772, 0.024792190914940105, 0.03547629380658895, -0.032036457564551535, -0.0059483824954654025, -0.011904690546128303, -0.009360479294311571, -0.03997820287386552, -0.023492345845840496, 0.006027641307069431, -0.007985336794222805, 0.023413086568575173, 0.0005290533357980192, -0.015059195625184764, 0.001336503672271116, -0.036585919963013094, 0.023524048066630488, 0.015130528415930003, 0.004755535681161064, 0.004600980369890465, -0.011009064624585039, 0.022366868579021353, 0.002353990010834807, 0.019434288358720686, -0.03113290515648819, -0.02537870807658734, -0.03165601601391027, 0.020464655237879513, 0.003372467160213508, -0.01434586585508722, -0.00498538656077565, -0.03417644687484417, -0.02330212320787469, 0.006229751346508896, 0.0240313059510124, 0.0008659037507764304, -0.0007574181156054125, -0.038424726999929784, -0.001656511583962905, 0.0015336602397121447, -0.016929706745536614, -0.03747361939803628, 0.006721156723511937, 0.008655074148088939, 0.024189824505543044, -0.046192102644318125, 0.04409966666521048, 0.03316193483137068, 0.019957397353497597, -0.0007876355753644282, -0.0168345963578763, 0.019481843552550844, 0.02132065058946753, -0.05573487715875283, -0.01271313163520875, 0.01271313163520875, -0.0011284490007722348, -0.01873680969901814, -0.02241442377285151, 0.008892851048562316, 0.02063902490280515, 0.011809580158467987, -0.021621834725488644, 0.006887600367578783, -0.019196512389569893, 0.018784364892848297, -0.010501807671525708, 0.017801555070164798, 0.02899291398355039, -0.027391884778429663, 0.025933521154799414, -0.005076534170837217, 0.013188685436155501, 0.01585178467254763, -0.002130083530448991, 0.019386733164890528, 0.02574329851683361, -0.017500370934143684, -0.006713231168314439, 0.017595481321804, -0.022477831939721835, 0.002881062016041113, 0.0209085049553911, 0.04020012586997614, 0.004052112389399101, -0.00272650693760116, 0.00017288353601461375, -0.009376330404706567, 0.027962548967036732, -0.0018100757351725248, -0.016470004054984857, -0.011825431268862983, 0.02594937226519441, 0.005619457984930459, -0.017310148296177878, 0.016771188191005974, -0.011484618425531792, 0.020607320819369987, -0.0336691927157526, -0.030736610632806756, -0.004299796699530642, -0.01151632157764437, 0.005001238136831939, -0.007906077516957485, -0.02553722476847281, -0.014131866551528923, 0.028105214548527206, 0.009376330404706567, -0.027534550359920137, -0.0012998463496681637, -0.01382275686031031, -0.023238716903649537, 0.03468370475922608, -0.008456926886248224, 0.03465200253843609, 0.03569822052798991, 0.04955267960909022, -0.041690193577041554, -0.012190022640431838, 0.0009565561300534774, -0.022287609301756033, -0.007192747281198648, 0.023254568014044533, -0.02295338387802342, -0.01832466406494171, 0.038583245554460424, 0.00150492882155266, -0.03820280027852881, 0.047808982959833844, 0.014868973918541547, 0.0261871482343452, 1.776359701187187e-06, 0.007014414838674262, -0.021495020254393166, 0.009812254567020659, 0.011484618425531792, -0.0026492295147965065, 0.04869668239485703, 0.0025006190684159694, 0.009962846635031218, 0.015233565290110402, -0.015954822478050613, 0.01622430253063657, -0.02650418534340648, 0.010842620514856901, 0.04175360174391188, 0.04102442086341934, 0.030276909804900172, -0.060744040385120976, -0.03168771823470026, 0.001310744453726016, 0.01197602333687354, 0.030054984946144375, -0.003955020147278117, 0.035127554476737675, 0.0142666065778219, 0.015059195625184764, 0.0002200673649640432, 0.033954523878733545, -0.04308515089644665, -0.007018377616273011, 0.02910387734425087, -0.0035091888081365055, 0.010977361472472462, -0.020353691877179027, -0.0065983054956764995, 0.03966116576480424, 0.012205874682149419, -0.012507058818170535, 0.012863723703219306, -0.0022311387829993695, -0.007204636079656187, 0.03772724834022723, 0.007890226406562489, -0.019481843552550844, 0.023317976180914857, 0.008385594095502987, -0.032781489555439074, -0.007573190228823792, 0.012499132331650451, 0.02043295115444435, 0.005108237788611088, 0.047808982959833844, 0.006309010623774216, 0.015130528415930003, 0.011666913645654926, 0.008607518954258781, 0.010763362168914164, -0.004466240343597488, -0.002736414347259325, -0.007862485100726076, -0.01621637697543907, 0.03718828823505533, 0.0008688759503908154, 0.014575716269040515, -0.004291870678671851, 0.00023480456989175293, -0.01601030322707827, 0.00883737029953466, -0.04197552846531284, 0.043180261284106965, 0.026741961312557273, 0.024459304558128996, 0.012308910625007233, 0.021590130642053482, -0.004775350034816102, 0.008940407173715059, -0.002496656057986574, 0.0014464754072493263, -0.0003190171590844404, -0.008242928514012511, -0.0230643472387239, -0.016676077803345655, 0.004497943961371358, -0.002159805759423486, -0.0058889380375164125, -0.0018497051409745388, -0.005203348641932696, -0.0013474017763289681, -0.03162431006782994, 0.009756773817993003, 0.017975924735090434, -0.0027165997607736412, 0.016961410828971776, -0.011460840828616713, 0.003408133788416773, 0.05208896530570945, -0.022097388526435398, 0.029198987731911187, 0.0689869679678109, 0.02051221043170967, -0.004303759477129391, -0.005694753553274445, 0.007454301778587104, -0.0025382670854186087, -0.011001139069387541, 0.015709119091057155, -0.03503244408907736, -0.019355029081455366, -0.011651061603937345, 0.02144746506056301, 0.033288747439820986, 0.006467528246982272, 0.011730320881202667, 0.0008218159873451776, -0.022937532767628423, 0.036617622183803086, 0.02079754159469062, -0.007216525343775019, -0.045526326205405566, 0.0075573386527675035, 0.01658096741568534, -0.01058106694879103, -0.021637685835883644, 0.022794867186137945, -0.003972853577795072, -0.01325209267170324, 0.03604695985784119, 0.02858076834947396, 0.022636348631607305, -0.043180261284106965, -0.05589339571328347, 0.00817159479194469, -0.012007727420308702, -0.004830831249505051, -0.03389111571186322, -0.02975380081012326, -0.034113042433264185, -0.012942982049162043, -0.0014613364053212507, 0.0064833802886998535, -0.000857977846332963, 0.00443849996908366, -0.012507058818170535, -0.03423985504171449, -0.006281269783599095, 0.038424726999929784, 0.0451458846547643, -0.0012136523280203556, 0.046033584089787485, -0.03769554611943724, -0.016771188191005974, 0.0043632039350783814, 0.022287609301756033, -0.027217515113504027, -0.02254123824394699, -0.020845096788520777, -0.00018056173775432858, -0.00999455071846638, 0.02002080365772275, -0.016739484107570812, 0.05107444953694562, -0.01918065941652973, 0.004161093429977623, -0.008496556524880884, 0.03668103035067341, 0.017294297185782882, 0.01778570209712463, 0.021273095395637372, -0.0005458958390846413, -0.04920394027923894, -0.012578391608915772, 0.005195422621073906, 0.030102540139974533, 0.0304829816906158, -0.0009798384379763746, -0.009320849655678911, -0.005231089016446524, -0.02262049752121231, 0.004668350848698246, 0.0012344577253210498, -0.020781690484295623, 0.021273095395637372, 0.005857234419742542, -0.012245504320782079, -0.01990984215966744, -0.002845395387837848, -0.011563876771474527, 0.012950908535682126, -0.014298309729934478, 0.003249615932378071, 0.02889780359589007, -0.04029523625763646, -0.047682170351383536, -0.010224401132419673, -0.048347943065005755, 0.04413136888600047, 0.011191359844708175, 0.0016396689642609599, -0.03389111571186322, -0.008338038901672827, 0.0065507503018463415, -0.04917223805844895, 0.0008673898505836229, 0.018530735950657337, -0.012253429875979577, -0.01589141431118029, -0.04061227336669774, 0.014924455598891788, -0.0034854112112214265, -0.025600632935343134, -0.01908554902886941, -0.004767424479618604, 0.016723632997175813, 0.01047803007461063, 0.032813195501519406, 0.02751869924952514, 0.01473423389224857, 0.015178084541082746, 0.030863425103902237, 0.05342051445824422, -0.017627185405239162, -0.013006389284709782, -0.011397433593068973, 0.0004943775184097646, -0.019402584275285524, -0.001275077941938074, 0.0016257986605887227, -0.027043145448578387, 0.018372219258771867, 0.03633229102082214, -0.032194976119082175, 0.009645811388615106, 0.017547926127973842, -0.027994253050471894, -0.05018675010192244, -0.014242828980906822, 0.03886857671744137, -0.0199415462431026, -0.04257789301206474, 0.0048625348672789205, 0.0014494476068637112, -0.011817505713665485, 0.03015009533380469, 0.01569326798066216, 0.011143804650878017, -0.009194035184583432, -0.0030237280631928804, 0.007593005048140122, -0.010509733226723208, 0.029294098119571503, -0.01043840043597797, 0.007735671095291889, 0.012832019619784144, 0.00217962034590917, -0.0021221577424208465, -0.006725119966771978, 0.06347055058235118, -0.019687917300911642, -0.013854460012422886, 0.013347203059363558, 0.017706444682504482, -0.00038267201002443996, -0.01622430253063657, 0.008797740660902, 0.11483033128227775, -0.00928122001704625, -0.027011441365143225, 0.0014989844223238901, 0.0016941594845502215, 0.013331351017645977, -0.014924455598891788, -0.015907265421575285, 0.009194035184583432, -0.04641402564042875, -0.02139990986673285, 0.010216475577222175, -0.021748649196584126, -0.006372417393660663, -0.013061870965060023, 0.002143953950536551, -0.016723632997175813, -0.019513547635986006, 0.013624609598469594, -0.030007429752314217, 0.006241640144966435, -0.001979491695269079, 0.004307722720389432, -0.01313320375580526, 0.0018249367332444492, -0.024665378306489794, -0.0240471570614074, -0.007121414490453411, 0.021146280924541894, 0.044733737158042707, 0.011254767080255914, -0.0029860800461902408, -0.0005320255354124041, 0.011912616101325801, -0.02415812042210788, -0.009986624231946297, -0.006419973053152114, -0.010858472556574482, 0.004232426686384154, -0.01626393216926923, -0.02371427070459629, -0.010160993896871933, -0.029198987731911187, -0.019640362107081484, 0.03918561382650265, -0.010596918059186026, 0.0024391934544982508, 0.011413285634786554, 0.01767474059906932, 0.027455291082654817, -0.008528260608316046, -0.019973248463892593, -0.01430623621645456, -0.0035844848421417845, -0.019228214610359888, -0.02431663897663852, 0.005730420414308357, -0.02748699516608998, 0.01060484454570611, -0.01058106694879103, -0.032496158392458126, 3.075927486267542e-05, -0.011904690546128303, 0.00769207867906048, 0.008615445440778864, -0.011960172226478544, -0.015027492473072187, -0.01593104394981295, 0.037441917177246285, -0.009891513844285979, 0.02249368305011683, -0.019101400139264407, 0.012293059514612237, 0.007818892684494667, -0.032194976119082175, 0.015067121180382264, 0.016470004054984857, 0.002506563467644739, -0.031323127794453995, 0.001666418877205747, 0.03449348398390545, 0.004704017244070865, -0.009606181749982446, 0.008242928514012511, -0.0047951648541324325, 0.020353691877179027, -0.015217713248392821, -0.018372219258771867, -0.003754891496638026, -0.052469406856350716, 0.0002741863457495913, 0.01957695394021116, 0.03303511849763003, 0.013949570400083204, -0.00025660076345554217, -0.006851933972206165, 0.0004445930293496638, -0.025473818464247656, 0.010850547001376984, -0.02319116170981938, -0.004355277914219591, -0.0030891166875399944, -0.010699954933366425, 0.036300588800032146, -0.007311635731435336, -0.02233516449558619, -0.013830682415507807, 0.019529398746381002, -0.003433893006961873, -0.015075047666902345, 0.014147717661923919, -0.0058849752599176635, 0.03056224096788112, -0.022113239636830394, 0.015265269373545564, 0.0006419972703906145, 0.011278544677170993, -0.04933075661297959, -0.014599493865955594, 0.017246741991952724, -0.011524248064164452, -0.011183434289510677, 0.006336750998288045, -0.028073510465092044, 0.02923069181534635, 0.024570266056184308, -0.005579828346297799, -0.001283994540781229, 0.026409073093100994, -0.0027383959688893457, -0.007696041456659229, 0.01542378699675362, 0.0009560607828536338, -0.033225342998241, 0.02412641633867272, 0.01546341663538628, 0.02022687740608355, 0.0029127654009843363, 0.047840688905914176, -0.011968097781676042, -0.02269975679847763, 0.017706444682504482, -0.015328675677770718, 0.01157180325799461, -0.0001700351586482744, -0.002367860430922367, 0.0031267647045426336, 0.005659087157901826, 0.003128746093342008, -0.022002278138775082, -0.024063010034447562, -0.007228414142232559, -0.028961211762760397, 0.015265269373545564, 0.05348392262511455, 0.013149055797522841, -0.009170257587668353, 0.035095852255947683, 0.015217713248392821, 0.006102937341074709, -0.04616039669823779, 0.0016555207731478946, -0.017167482714687404, -0.03506415003515769, 0.02585426187753409, -0.018023479928920595, 0.02160598361509365, 0.008567890246948706, 0.02010006293498807, -0.005009164157690729, 0.006027641307069431, -0.012610094761028348, 0.0039015205542191887, -0.01873680969901814, 0.005349977466683213, 0.027122404725843707, -0.018181996620806065, 0.020734135290465465, -0.010287808367967412, -0.00598801166843677, -0.009843958650455821, -0.02485559908181043, -0.013053945409862525, 0.052469406856350716, -0.0007866448227570793, 0.018990438641209095, -0.018102739206185915, -0.03595184947018087, -0.03389111571186322, -0.037600435731776925, 0.03414474465405418, 0.014401346604114877, 0.023825232202651602, -0.011603506410107187, -0.03788576689475787, 0.026298111595045682, -0.00495764572060053, -0.015392082913318459, 0.002676970122140981, -0.016596818526080335, -0.03024520572146501, 0.011651061603937345, 0.011334026357521234, 0.007759448692206968, 0.014662901101503333, -0.01540793495503604, 0.003905483564648584, 0.047491949576062904, 0.010446325991175467, -0.024348341197428514, 0.03271808511385909, 0.023286272097479695, 0.015503045342696356, -0.002169713169081651, 0.011199286331228258, -0.005611531964071668, 0.015376231802923461, 0.021067021647276574, -0.041880414352362186, 0.0032852823277506895, -0.02160598361509365, -0.04096101269654902, -0.014171496190161583, -0.02079754159469062, -0.027058996558973383, 0.005639272338585496, 0.028755138014399596, -0.02139990986673285, -0.030213501638029848, 0.022715607908872625, 0.0030316538512210247, 0.02025858148951871, 0.021352354672902692, -0.006439787872468444, 0.02387278739648176, -0.010715806975084006, -0.02877098912479459, 0.012086985766251439, -0.008104224778798201, 0.02428493489320336, -0.020607320819369987, -0.03750532161882627, -0.004652498806980665, 0.004161093429977623, 0.0017179371978806237, 0.007367116946124285, 0.012499132331650451, 0.006435824629208402, -0.0059325304537478215, 0.006348639796745584, -0.02995987455848406, -0.0005483726914991826, -0.019624509134041318, -0.01666022669295066, -0.012776538870756488, -0.024380045280863676, 0.014631197949390756, -0.01546341663538628, -0.005369792285999543, 0.00768018988060294, -0.01913310422269957, 0.0034398374061906426, 0.03500074186828737, -0.010382918755627728, 0.026979737281708063, 0.005940456474606612, 0.00936840484950907, 0.023444790652010335, 0.021003615343051417, 0.006348639796745584, -0.03229008650674249, -0.005124089364667376, -0.022240054107925875, 0.011793728116750406, -0.004307722720389432, 0.011072471860132778, 0.01949769466294584, 0.008987962367545217, 0.0031822459192315826, 0.005322236626508092, -0.0069827112209003925, 0.028802693208229754, -0.005298459029593013, -0.03981968431933488, -0.0006860850920295289, -0.01206320816933636, 0.0019576954871533747, 0.029975725668879055, 0.022430274883246507, -0.003953038758478742, -0.007553375409507462, 0.011048694263217699, -0.007953632710787643, -0.0043830187543947114, 0.029531875951367463, 0.04879179278251734, -0.0066181203149928295, -0.033098526664500354, 0.021019466453446416, 0.01538415735812096, -0.029357506286441827, 0.011032842221500118, 0.022398572662456515, -0.017421111656878364, 0.009352552807791488, 0.03287660366838973, -0.011548025661079531, 0.023460641762405334, -0.010390845242147811, -0.0008985980629499874, 0.02082924567812578, 0.014100162468093761, -0.01469460425361591, -0.019783027688571958, -0.01800762695588043, -0.02528359768892702, 0.03607866207863118, 0.0223034622747962, 0.011651061603937345, 0.028469804988773478, -0.002781988152290109, -0.00437905551113467, 0.001774409223384583, -0.04831624084421576, 0.018831920086678455, -0.017849110263994956, 0.026298111595045682, 0.015090899708619928, 0.012578391608915772, -0.0003239708639135229, 0.0032912269598101055, 0.022113239636830394, -0.01215831948831926, -0.0001985188450001758, -0.005203348641932696, -0.05155000520053754, 0.017135780493897412, 0.00029375340415450723, 0.026900479867087913, -0.023207012820214375, -9.944518497598695e-05, 0.035127554476737675, 0.0031505423014577126, 0.015043343583467183, 0.010810917362744322, 0.02225590521832087, 0.04032694220371679, 0.028438102767983486, 0.031719420455490255, 0.01581215503391497, -0.002550155883876148, -0.003968890800196323, -0.03620547841237183, 0.007822855462093416, 0.0357299227487799, -0.020321987793743865, 0.060744040385120976, -0.021495020254393166, -0.0019735472960403094, -0.021669389919318806, 0.02055976562553983, 0.027899140800166408, 0.029119728454645867, 0.0076722638597441495, -0.0032436715331493012, 0.04688958130402067, -0.017975924735090434, -0.0010283845590368663, 0.022763163102702783, 0.00250854508927476, -0.034271560987794825, -0.019624509134041318, 0.0022113239636830395, -0.03113290515648819, -0.01479764112779631, -0.002647248125997132, -0.0014870956238663506, 0.011825431268862983, -0.03918561382650265, -0.008607518954258781, 0.020686580096635307, 0.0026234705290820526, -0.0027998215828070644, -0.021637685835883644, 0.02488730316524559, 0.02504581985713106, -0.013577053473316851, 0.017658887626029154, 0.018990438641209095]
|
chainlit.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Welcome to Chainlit! ππ€
|
| 2 |
+
|
| 3 |
+
Hi there, Developer! π We're excited to have you on board. Chainlit is a powerful tool designed to help you prototype, debug and share applications built on top of LLMs.
|
| 4 |
+
|
| 5 |
+
## Useful Links π
|
| 6 |
+
|
| 7 |
+
- **Documentation:** Get started with our comprehensive [Chainlit Documentation](https://docs.chainlit.io) π
|
| 8 |
+
- **Discord Community:** Join our friendly [Chainlit Discord](https://discord.gg/k73SQ3FyUh) to ask questions, share your projects, and connect with other developers! π¬
|
| 9 |
+
|
| 10 |
+
We can't wait to see what you create with Chainlit! Happy coding! π»π
|
| 11 |
+
|
| 12 |
+
## Welcome screen
|
| 13 |
+
|
| 14 |
+
To modify the welcome screen, edit the `chainlit.md` file at the root of your project. If you do not want a welcome screen, just leave this file empty.
|
requirements.txt
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
chainlit
|
| 2 |
+
cohere==4.37
|
| 3 |
+
tiktoken
|
| 4 |
+
python-dotenv==1.0.0
|
| 5 |
+
langchain
|
| 6 |
+
langchain-openai
|
| 7 |
+
langchain_core
|
| 8 |
+
langchain-community
|
| 9 |
+
langchainhub
|
| 10 |
+
openai
|
| 11 |
+
faiss_cpu
|