Create Web Search Feed

Create Web Search feed to search the web and ingest the resulting website pages.

Graphlit supports Web searches to ingest relevant content across the Web, using either the Tavily web search API, or the Exa.AI web search API.

The createFeed mutation enables the creation of a feed by accepting the feed name, type and search feed parameters and it returns essential details, including the ID, name, state, and type of the newly generated feed.

You can provide the web search text and the search service type, either TAVILY or EXA. Graphlit defaults to the Tavily web search API.

From the web search results, we take the URLs of the resulting web pages and ingest them according to your assigned content workflow - similar to the Web feed.

Mutation:

mutation CreateFeed($feed: FeedInput!) {
  createFeed(feed: $feed) {
    id
    name
    state
    type
  }
}

Variables:

{
  "feed": {
    "type": "SEARCH",
    "search": {
      "serviceType": "TAVILY",
      "text": "What are the top open-source LLMs"
    },
    "name": "Web Search"
  }
}

Response:

{
  "type": "SEARCH",
  "id": "251c884b-913a-44b0-893c-1f389c5f53e4",
  "name": "Web Search",
  "state": "ENABLED"
}

Last updated