Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ nltk_chunks = text_splitter.create_documents(documents, metadatas=metadatas)
|
|
31 |
llm = Ollama(model="llama3")
|
32 |
|
33 |
# Create an embedding model
|
34 |
-
embeddings = HuggingFaceEmbeddings(model_name="
|
35 |
|
36 |
docs_text = [doc.page_content for doc in nltk_chunks]
|
37 |
docs_embedding = embeddings.embed_documents(docs_text)
|
|
|
31 |
llm = Ollama(model="llama3")
|
32 |
|
33 |
# Create an embedding model
|
34 |
+
embeddings = HuggingFaceEmbeddings(model_name="intfloat/multilingual-e5-base")
|
35 |
|
36 |
docs_text = [doc.page_content for doc in nltk_chunks]
|
37 |
docs_embedding = embeddings.embed_documents(docs_text)
|