Semantic Vector Search
searchSemantically search pre-indexed Materio documents. Get relevant text passages with similarity scores and source references to quickly find answers to your questions.
Instructions
PRIORITY 1 — Semantic search across the pre-indexed Materio document library.
Uses Google Gemini (gemini-embedding-2-preview) to match your question against extracted textbook chunks stored in a vector database. Always call this first before attempting fetch_pdf. Returns the most relevant text passages with similarity scores and source page references.
Args:
query (string): The specific question, concept, or topic to search for. Be precise — e.g. "deadlock detection algorithm" not just "deadlock".
semester (string, optional): Filter results to a specific semester (e.g. "4").
subject (string, optional): Filter results to a specific subject (e.g. "Operating System").
limit (number, optional): Number of results to return (default: 5, max: 15).
Returns: Ranked text chunks with similarity %, subject, topic, page range, and a direct PDF link for further reading.
Examples:
"Explain banker's algorithm" → params: { query: "banker algorithm deadlock avoidance" }
"OS deadlocks semester 4" → params: { query: "deadlock", semester: "4", subject: "Operating System" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of results to return (default: 5). | |
| query | Yes | The specific question, topic, or concept to semantically search for. | |
| subject | No | Optional: filter to a specific subject name, e.g. 'Operating System'. | |
| semester | No | Optional: filter to a specific semester number, e.g. '4'. |