Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] standardize the output of actions and the input of the citation util so that it can cite sources from any tools not only google search #347

Closed
amirfz opened this issue Apr 22, 2024 · 0 comments
Assignees

Comments

@amirfz
Copy link
Contributor

amirfz commented Apr 22, 2024

PROBLEM Currently the citation validation utility is too tightly coupled with google search api and can only cite results from the google search action. This is a problem because we have multiple projects that will be searching against local documents rather than google search, and they need citation support.

SOLUTION
we need to standardize the output of other actions so that they contain all necessary metadata for citing. the citation tool should also be parameterized to accept non-google api info. the citation util also only emits a URL and that needs to change to something more comprehensive. if expansion to an arbitrary tool is too complex, at least this should work for "document search" type of tools.

the object emitted by the citation util could look like:

  • address: g_search.url | hosted_doc.url
  • title: g_search.page_title | hosted_doc.file_name
  • content: g_search.snippet | hosted_doc.chunk

ALTERNATIVES
n/a

OTHER INFO
n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants