Update application files, fix LLM models, and create new retriever class

This commit is contained in:
Alex
2024-04-09 16:38:42 +01:00
parent 1e26943c3e
commit 19494685ba
6 changed files with 67 additions and 74 deletions

View File

@@ -237,6 +237,20 @@ def combined_json():
for index in data_remote:
index["location"] = "remote"
data.append(index)
if 'duckduck_search' in settings.RETRIEVERS_ENABLED:
data.append(
{
"name": "DuckDuckGo Search",
"language": "en",
"version": "",
"description": "duckduck_search",
"fullName": "DuckDuckGo Search",
"date": "duckduck_search",
"docLink": "duckduck_search",
"model": settings.EMBEDDINGS_NAME,
"location": "custom",
}
)
return jsonify(data)