Add Brave Search retriever and update application files

This commit is contained in:
Alex
2024-04-09 17:11:09 +01:00
parent 19494685ba
commit e03e185d30
5 changed files with 94 additions and 4 deletions

View File

@@ -1,5 +1,3 @@
import json
import ast
from application.retriever.base import BaseRetriever
from application.core.settings import settings
from application.llm.llm_creator import LLMCreator
@@ -33,7 +31,6 @@ class DuckDuckSearch(BaseRetriever):
elif inside_brackets:
current_item += char
# Check if there is an unmatched opening bracket at the end
if inside_brackets:
result.append(current_item)