Update app.py
Browse files
app.py
CHANGED
|
@@ -16,25 +16,23 @@ from components.collection_manager import (
|
|
| 16 |
display_collection_content
|
| 17 |
)
|
| 18 |
|
| 19 |
-
# Utils imports
|
| 20 |
from utils.database import (
|
|
|
|
| 21 |
create_connection,
|
| 22 |
create_tables,
|
| 23 |
get_all_documents,
|
|
|
|
|
|
|
| 24 |
get_collections,
|
| 25 |
-
get_collection_documents,
|
| 26 |
-
create_collection,
|
| 27 |
-
add_document_to_collection
|
| 28 |
-
)
|
| 29 |
-
|
| 30 |
-
from utils.collections import (
|
| 31 |
-
create_collection_tables,
|
| 32 |
create_collection,
|
| 33 |
add_document_to_collection,
|
| 34 |
remove_from_collection,
|
| 35 |
-
update_collection
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
)
|
| 37 |
-
from utils.document_search import search_documents
|
| 38 |
|
| 39 |
# Message types
|
| 40 |
from langchain_core.messages import (
|
|
|
|
| 16 |
display_collection_content
|
| 17 |
)
|
| 18 |
|
|
|
|
| 19 |
from utils.database import (
|
| 20 |
+
# Base database operations
|
| 21 |
create_connection,
|
| 22 |
create_tables,
|
| 23 |
get_all_documents,
|
| 24 |
+
|
| 25 |
+
# Collection operations
|
| 26 |
get_collections,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
create_collection,
|
| 28 |
add_document_to_collection,
|
| 29 |
remove_from_collection,
|
| 30 |
+
update_collection,
|
| 31 |
+
get_collection_documents,
|
| 32 |
+
|
| 33 |
+
# Search functionality
|
| 34 |
+
search_documents
|
| 35 |
)
|
|
|
|
| 36 |
|
| 37 |
# Message types
|
| 38 |
from langchain_core.messages import (
|