add search and rag functions in beta

This commit is contained in:
LUIS NOVO 2024-11-04 09:53:49 -03:00
parent 56e745d668
commit 418c67f69f
6 changed files with 184 additions and 75 deletions

View file

@ -48,15 +48,6 @@ def file_type(state: SourceState):
return return_dict
# def _get_title(url):
# """
# Get the content of a URL
# """
# response = extract_url(dict(url=url))
# if "title" in response:
# return response["title"]
def file_type_edge(data: SourceState):
assert data.get("identified_type"), "Type not identified"
identified_type = data["identified_type"]