Update appChatbot.py
Browse files- appChatbot.py +2 -2
appChatbot.py
CHANGED
@@ -6,7 +6,7 @@ import sys
|
|
6 |
import gradio as gr
|
7 |
from huggingface_hub import InferenceClient
|
8 |
|
9 |
-
from chromadb.utils import embedding_functions
|
10 |
|
11 |
from langchain.text_splitter import CharacterTextSplitter
|
12 |
from langchain.embeddings import OpenAIEmbeddings
|
@@ -54,7 +54,7 @@ def init_chromadb():
|
|
54 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
55 |
texts = text_splitter.split_documents(documents)
|
56 |
# Select which embeddings we want to use
|
57 |
-
|
58 |
#query_chromadb()
|
59 |
|
60 |
# Create the vectorestore to use as the index
|
|
|
6 |
import gradio as gr
|
7 |
from huggingface_hub import InferenceClient
|
8 |
|
9 |
+
#from chromadb.utils import embedding_functions
|
10 |
|
11 |
from langchain.text_splitter import CharacterTextSplitter
|
12 |
from langchain.embeddings import OpenAIEmbeddings
|
|
|
54 |
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
|
55 |
texts = text_splitter.split_documents(documents)
|
56 |
# Select which embeddings we want to use
|
57 |
+
embeddings = OpenAIEmbeddings()
|
58 |
#query_chromadb()
|
59 |
|
60 |
# Create the vectorestore to use as the index
|