What Are Databases?
A Database is a container made up of one or more Tables. Each Table holds Documents — structured records that combine metadata fields (like title, category, or a timestamp) with a text body that gets automatically embedded for semantic search.FAQs and Troubleshooting Guides. Each document in FAQs could have a category column, a last_updated timestamp, and a text body containing the answer. Agents can search across both tables at once or scope their query to a single table.
Search Modes
Databases support three distinct search modes. You choose the right one based on the kind of query you expect.| Mode | How It Works | Best For |
|---|---|---|
| Semantic (Vector) | Converts your query to an embedding and finds documents with similar vectors | Natural language questions, finding related concepts |
| Keyword (BM25) | Matches exact keywords using traditional full-text search | Product codes, SKUs, technical identifiers |
| Hybrid | Fuses semantic and keyword results using Reciprocal Rank Fusion (RRF) | General-purpose production search |
Semantic Search
Semantic search finds relevant content even when the user’s words don’t appear verbatim in the document. A query for"how do I reset my password" can surface documents about "account recovery" or "login troubleshooting" because the embeddings capture meaning, not just terms.
Keyword Search
Keyword search uses BM25 to find documents containing exact keyword matches. Use it when precision matters — for example, when users search for a specific error code likeERR_CERT_AUTHORITY_INVALID.
Hybrid Search
Hybrid search combines both approaches using Reciprocal Rank Fusion. Results from the semantic pass and the keyword pass are merged and re-ranked, so you get the precision of keyword matching alongside the conceptual coverage of vector search. For most production applications, hybrid search is the recommended default.Databases vs. Drive
Scout offers two storage systems. Use this table to pick the right one for your use case.| Feature | Databases & Tables | Drive |
|---|---|---|
| Purpose | Structured data with vector search | Raw file storage (PDFs, images, docs) |
| Search | Semantic, keyword, or hybrid | By path or filename |
| Use Case | RAG, knowledge bases, CRM data | Assets, attachments, generated outputs |
| AI Access | Agents search by meaning | Agents read and write files directly |
| Sync | Notion, Google Sheets, web scraping | Manual upload or agent writes |
When to Use Databases
Choose Databases when your agents need to find information by meaning:- Building a chatbot that answers questions from your internal docs (RAG)
- Creating a searchable knowledge repository for support or onboarding
- Storing and querying customer or CRM records
- Surfacing content by concept rather than exact path
When to Use Drive
Choose Drive when your agents need raw file access:- Storing PDFs, images, and other binary assets
- Saving generated reports and workflow outputs
- Passing files between workflow steps
- Reading files by exact path without semantic querying
Quick Start
Get up and running with Databases in four steps.Create a Database
- Navigate to Databases in the Scout dashboard.
- Click + New at the top of the page.
- Enter a name and optional description.
- Click Create.
Create and Configure a Table
Every new Database comes with an
Untitled table. Rename it and add columns to match your data:- Click the + button in the table header row.
- Enter a column name and select a type:
Single Line Text,Multi Line Text,Number,Checkbox, orURL. - Repeat for each field your documents need.
content — Scout automatically chunks and embeds this field for semantic search.Using Databases with Agents
Give your agents the ability to read from and write to Databases by following these two steps.1. Enable Databases Tools
Open your agent in Scout, go to the Tools tab, and enable the Databases tools. This grants the agent permission to query tables and create or update documents.2. Add an Instruction Snippet
Add the following to your agent’s system prompt to guide its retrieval behavior:Prompt Examples
- “Search our support knowledge base for account recovery steps and summarize the answer.”
- “Find onboarding docs updated in the last 30 days and return only security-related items.”
- “Add this meeting note to the
customer_feedbacktable with categoryenterprise.”
Expected Agent Behavior
When configured correctly, your agent will:- Query the correct table before formulating an answer
- Apply metadata filters when the user’s request includes constraints like category or date
- Write records only when explicitly asked or when your instructions allow it
- Cite which data came from Databases in its final response
Next Steps
Creating Databases
Create databases, configure table schemas, and populate data via the UI or API.
Sources
Sync data automatically from Notion, Google Sheets, websites, and more.
Querying Data
Master semantic search, hybrid search, and advanced metadata filtering.