mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 20:10:07 +00:00
add search and rag functions in beta
This commit is contained in:
parent
56e745d668
commit
418c67f69f
6 changed files with 184 additions and 75 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue