Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,13 +5,13 @@ from chromadb.config import Settings
|
|
| 5 |
|
| 6 |
from chromadb import PersistentClient
|
| 7 |
|
| 8 |
-
# Initialize the inference client with
|
| 9 |
-
inference_client = InferenceClient(model="
|
| 10 |
|
| 11 |
-
#
|
| 12 |
client_db = PersistentClient(path="./chromadb_directory/chromadb_file")
|
| 13 |
|
| 14 |
-
# Load
|
| 15 |
collection = client_db.get_collection("my_collection")
|
| 16 |
|
| 17 |
# Function to retrieve documents from ChromaDB, ensuring results are strings
|
|
|
|
| 5 |
|
| 6 |
from chromadb import PersistentClient
|
| 7 |
|
| 8 |
+
# Initialize the inference client with model
|
| 9 |
+
inference_client = InferenceClient(model="unsloth/Llama-3.2-3B-Instruct")
|
| 10 |
|
| 11 |
+
# path to the ChromaDB directory
|
| 12 |
client_db = PersistentClient(path="./chromadb_directory/chromadb_file")
|
| 13 |
|
| 14 |
+
# Load collection
|
| 15 |
collection = client_db.get_collection("my_collection")
|
| 16 |
|
| 17 |
# Function to retrieve documents from ChromaDB, ensuring results are strings
|