nasa-petal / bidara-deep-chat

BIDARA is a GPT-4o chatbot that was instructed to help scientists and engineers understand, learn from, and emulate the strategies used by living things to create sustainable designs and technologies using the Biomimicry Institute's step-by-step design process.
https://bit.ly/bidara-ai
Other
21 stars 5 forks source link

All-inclusive search function #162

Open saanaz379 opened 4 months ago

saanaz379 commented 4 months ago

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


jackitaliano commented 4 months ago

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).