Spaces:
Build error
Build error
Renamed utils to data
Browse files
chatbot/{utils.py → data.py}
RENAMED
@@ -1,5 +1,7 @@
|
|
1 |
import os
|
2 |
|
|
|
|
|
3 |
import streamlit as st
|
4 |
from gdown import download_folder
|
5 |
from llama_index import ServiceContext
|
@@ -31,8 +33,8 @@ def load_data():
|
|
31 |
api_version=st.secrets["OPENAI_API_VERSION"],
|
32 |
system_prompt="You are an expert on André's research and your job is to answer"
|
33 |
"technical questions. Assume that all questions are related to"
|
34 |
-
"André's research. Keep your answers technical and based on facts"
|
35 |
-
"
|
36 |
)
|
37 |
# You need to deploy your own embedding model as well as your own chat completion model
|
38 |
embed_model = OpenAIEmbedding(
|
|
|
1 |
import os
|
2 |
|
3 |
+
from chatbot import redirect as rd
|
4 |
+
|
5 |
import streamlit as st
|
6 |
from gdown import download_folder
|
7 |
from llama_index import ServiceContext
|
|
|
33 |
api_version=st.secrets["OPENAI_API_VERSION"],
|
34 |
system_prompt="You are an expert on André's research and your job is to answer"
|
35 |
"technical questions. Assume that all questions are related to"
|
36 |
+
"André's research. Keep your answers technical and based on facts;"
|
37 |
+
" do not hallucinate features.",
|
38 |
)
|
39 |
# You need to deploy your own embedding model as well as your own chat completion model
|
40 |
embed_model = OpenAIEmbedding(
|