Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
import os
|
2 |
import json
|
3 |
import gradio as gr
|
4 |
-
from llama_index import (
|
5 |
VectorStoreIndex,
|
6 |
download_loader,
|
|
|
7 |
)
|
8 |
import chromadb
|
9 |
|
10 |
-
from llama_index.llms import MistralAI
|
11 |
-
from llama_index.embeddings import MistralAIEmbedding
|
12 |
from llama_index.vector_stores import ChromaVectorStore
|
13 |
from llama_index.storage.storage_context import StorageContext
|
14 |
-
from llama_index import ServiceContext
|
15 |
|
16 |
title = "Gaia Mistral Chat RAG PDF Demo"
|
17 |
description = "Example of an assistant with Gradio, RAG from PDF documents and Mistral AI via its API"
|
|
|
1 |
import os
|
2 |
import json
|
3 |
import gradio as gr
|
4 |
+
from llama_index.core import (
|
5 |
VectorStoreIndex,
|
6 |
download_loader,
|
7 |
+
ServiceContext
|
8 |
)
|
9 |
import chromadb
|
10 |
|
11 |
+
from llama_index.llms.mistralai import MistralAI
|
12 |
+
from llama_index.embeddings.mistralai import MistralAIEmbedding
|
13 |
from llama_index.vector_stores import ChromaVectorStore
|
14 |
from llama_index.storage.storage_context import StorageContext
|
|
|
15 |
|
16 |
title = "Gaia Mistral Chat RAG PDF Demo"
|
17 |
description = "Example of an assistant with Gradio, RAG from PDF documents and Mistral AI via its API"
|