Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,6 @@ from langchain.prompts import PromptTemplate
|
|
20 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
21 |
from langchain.vectorstores import Chroma
|
22 |
from chromadb.errors import InvalidDimensionException
|
23 |
-
from codeinterpreterapi import CodeInterpreterSession
|
24 |
|
25 |
#from langchain.vectorstores import MongoDBAtlasVectorSearch
|
26 |
#from pymongo import MongoClient
|
@@ -171,7 +170,7 @@ def document_loading_splitting():
|
|
171 |
|
172 |
#Chroma DB die splits ablegen - vektorisiert...
|
173 |
def document_storage_chroma(splits):
|
174 |
-
#OpenAi
|
175 |
Chroma.from_documents(documents = splits, embedding = OpenAIEmbeddings(disallowed_special = ()), persist_directory = PATH_WORK + CHROMA_DIR)
|
176 |
|
177 |
#HF embeddings--------------------------------------
|
|
|
20 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
21 |
from langchain.vectorstores import Chroma
|
22 |
from chromadb.errors import InvalidDimensionException
|
|
|
23 |
|
24 |
#from langchain.vectorstores import MongoDBAtlasVectorSearch
|
25 |
#from pymongo import MongoClient
|
|
|
170 |
|
171 |
#Chroma DB die splits ablegen - vektorisiert...
|
172 |
def document_storage_chroma(splits):
|
173 |
+
#OpenAi embeddings----------------------------------
|
174 |
Chroma.from_documents(documents = splits, embedding = OpenAIEmbeddings(disallowed_special = ()), persist_directory = PATH_WORK + CHROMA_DIR)
|
175 |
|
176 |
#HF embeddings--------------------------------------
|