Search resources reference
This page lists every field and option. The overview shows what it does and a first example.
Three components search: web_search finds pages on the web, search_local walks files on disk, and embedding ranks text by keyword in a local SQLite store. Each has its own reference page.
| Resource | Does | Reference |
|---|---|---|
component: web_search | Query the web via DuckDuckGo, return titles, URLs, and snippets - a kdeps component, YAML only. | web_search |
component: search_local | Walk a directory by filename glob and content keyword. Optional TF-IDF index for ranked results - a kdeps component, YAML only. | search_local |
web_search
yaml
# resources/find.yaml
actionId: find
name: Find Pages
component:
name: web_search
with:
query: "kdeps workflow engine" # requiredyaml
# resources/respond.yaml
actionId: respond
flow:
requires: [find]
apiResponse:
response:
results: "{{ output('find') }}"The output is up to 5 results, each three lines and a blank line. Feed a URL into web_scraper for the full page.
text
Title: Tutorial: Getting started with generics - The Go Programming Language
Description: Learn how to use generics in Go to declare and call functions ...
URL: https://go.dev/doc/tutorial/genericsThe search is the web_search tool, a python: block in tools/web_search.yaml that reads DuckDuckGo's lite HTML page (lite.duckduckgo.com). Set KDEPS_WEB_SEARCH_URL to point it at another endpoint that serves the same page.
In a chat loop the same tool is web_search. The loop caps web_search and web_scraper calls per request with the web-call-budget event.
See also
- Web scraper - read the text of a URL the search returned
- Embedding component - SQLite keyword store for on-prem RAG
- LLM resource - use search results as context for chat resources
- Resources overview - all resource types
