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

All-inclusive search function #162

Open
saanaz379 opened this issue Jun 24, 2024 · 1 comment
Open

All-inclusive search function #162

saanaz379 opened this issue Jun 24, 2024 · 1 comment

Comments

@saanaz379
Copy link
Contributor

Combine biology paper, patent, and NASA Spinoff searches into an all-inclusive search function


  • Add fields to describe which of the APIs to search
  • Allow domains to be selected and passed only when Semantic Scholar search is one of the APIs listed by the user
  • Set default Fields of Study to Biology, Engineering, Material Science, and Environmental Science and the default APIs to search as Biology Paper, Patent, and NASA Spinoff
@jackitaliano
Copy link
Contributor

something like:

export const SEARCH_FUNC = {
  "name": "search_external_sources",
  "description": "Search for information in academic papers, patent databases, NASA 'spinoff' ideas, or a general web search.",
  "parameters": {
    "type": "object",
    "properties": {
      "search_type": {
        "type": "string",
        "enum": [ "academic", "patents", "NASA", "general" ],
        "description": "The search type relevant to the available sources."
      },
      "query": {
        "type": "string",
        "description": "Query for the given search engine optimized for SEO, including all details relevant to the search. No additional information such as flags or filters should be supplied."
      },
      "links": {
        "type": "array",
        "description": "List of links to include in query. If provided, results will only be provided matching these links.",
        "items": {
          "type": "string"
        }
      },
      "get_full_content": {
        "type": "boolean",
        "description": "Retrieve content such as the full paper, website contents, or patent."
      }
    },
    "required": [
      "type",
      "query",
      "links"
    ]
  }
}

May need to change depending on how this works for functions with additional params (like Semantic Scholar).

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