Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -264,8 +264,6 @@ def search_knowledge_base(
|
|
| 264 |
Returns:
|
| 265 |
Dictionary with search results and metadata
|
| 266 |
"""
|
| 267 |
-
if not ensure_initialized():
|
| 268 |
-
return {"error": "Server not properly initialized", "results": []}
|
| 269 |
|
| 270 |
try:
|
| 271 |
# Create query embedding with task-specific formatting using EmbeddingGemmaPrompts
|
|
@@ -317,8 +315,6 @@ def search_knowledge_base(
|
|
| 317 |
|
| 318 |
def get_available_sources() -> Dict[str, Any]:
|
| 319 |
"""Get list of available source folders in the knowledge base"""
|
| 320 |
-
if not ensure_initialized():
|
| 321 |
-
return {"error": "Server not properly initialized", "sources": []}
|
| 322 |
|
| 323 |
try:
|
| 324 |
# Get all metadata to find unique source folders
|
|
|
|
| 264 |
Returns:
|
| 265 |
Dictionary with search results and metadata
|
| 266 |
"""
|
|
|
|
|
|
|
| 267 |
|
| 268 |
try:
|
| 269 |
# Create query embedding with task-specific formatting using EmbeddingGemmaPrompts
|
|
|
|
| 315 |
|
| 316 |
def get_available_sources() -> Dict[str, Any]:
|
| 317 |
"""Get list of available source folders in the knowledge base"""
|
|
|
|
|
|
|
| 318 |
|
| 319 |
try:
|
| 320 |
# Get all metadata to find unique source folders
|