Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,15 +4,12 @@ from llama_index.core import VectorStoreIndex, ServiceContext, SimpleDirectoryRe
|
|
4 |
from llama_index.core import load_index_from_storage
|
5 |
from llama_index.llms.ollama import Ollama
|
6 |
from llama_index.llms.llama_cpp import LlamaCPP
|
|
|
7 |
from llama_index.core import StorageContext
|
8 |
from llama_index.vector_stores.qdrant import QdrantVectorStore
|
9 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
10 |
from llama_index.core import Settings
|
11 |
from llama_index.core import set_global_service_context
|
12 |
-
from llama_index.core.llms.llama_utils import (
|
13 |
-
messages_to_prompt,
|
14 |
-
completion_to_prompt,
|
15 |
-
)
|
16 |
|
17 |
import gradio as gr
|
18 |
|
|
|
4 |
from llama_index.core import load_index_from_storage
|
5 |
from llama_index.llms.ollama import Ollama
|
6 |
from llama_index.llms.llama_cpp import LlamaCPP
|
7 |
+
from llama_index.llms.llama_cpp.llama_utils import messages_to_prompt, completion_to_prompt
|
8 |
from llama_index.core import StorageContext
|
9 |
from llama_index.vector_stores.qdrant import QdrantVectorStore
|
10 |
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
11 |
from llama_index.core import Settings
|
12 |
from llama_index.core import set_global_service_context
|
|
|
|
|
|
|
|
|
13 |
|
14 |
import gradio as gr
|
15 |
|