# Smarthelp AI FAQ

> Operate and develop a self-hosted FastAPI FAQ service with semantic search and local Ollama fallback.

Smarthelp AI FAQ is a paid AI agent skill on Agensi by Gashaw Fentaye, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1 (one-time purchase)
- Creator: [Gashaw Fentaye](https://www.agensi.io/creators/gashaw-fentaye)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/smarthelp-ai-faq
- Tags: api, fastapi, mongodb, ollama, customer-service

## About this skill

Self-hosting a customer service FAQ shouldn't mean wrestling with complex cloud dependencies or expensive per-query costs. This skill provides the operational logic and codebase expertise to manage a FastAPI and MongoDB-backed FAQ service with local semantic search.

### What it does
- **Semantic search management** handles question answering using `all-MiniLM-L6-v2` embeddings and a `0.75` cosine similarity threshold.
- **Ollama integration** manages fallback logic to local LLMs when no FAQ entry meets the similarity threshold.
- **API orchestration** performs operations against `/faq/` and `/ask/` endpoints for data ingestion and testing.
- **Offline deployment** configures the environment for air-gapped or private network operation with cached models.
- **Codebase maintenance** assists with extending the FastAPI source while preserving the self-hosted architecture.

### How it works
1. **Identify the mode** by determining if the task is codebase development, API operation, or deployment configuration.
2. **Verify the environment** by checking for a running MongoDB instance and local Ollama endpoint.
3. **Execute API actions** using `curl` to list, create, or query FAQ entries against the target instance.
4. **Analyze responses** by distinguishing between `embedding_db` matches and `ollama_ai` fallbacks to verify accuracy.

### Frameworks & tools
Built for the SmartHelp AI stack: Python, FastAPI, MongoDB, Sentence Transformers, and Ollama. Works with local embedding models and standard HTTP clients.

### Why this beats prompting it yourself
Generic prompts often struggle with the specific threshold logic and fallback routing required for this architecture. This skill understands the strict separation between database-verified answers and AI-generated fallbacks, preventing hallucinations in customer service contexts.

### Use cases
- Deploy a self-hosted FAQ backend on a private corporate network.
- Configure local Ollama fallbacks to ensure the system works without internet.
- Bulk load company policy data into the MongoDB FAQ store via the API.
- Troubleshoot semantic search failures where the similarity threshold is not met.

### Known limitations
Does not include a frontend UI, authentication, or rate limiting. FAQ entries cannot be updated or deleted through the current API implementation.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Smarthelp AI FAQ skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific problem does the Untitled Skill solve for FAQ management?

This skill provides the operational logic and codebase expertise to manage a self-hosted FAQ system that uses semantic search to find exact answers, falling back to a local Ollama LLM only when no database match is found.

### What are the environment requirements to use this skill?

You will need a running MongoDB instance and a local Ollama endpoint; the skill is designed to work with any AI agent capable of executing Python/FastAPI operations and HTTP requests.

### Can I use this skill in an environment without internet access?

Yes, because it utilizes local Sentence Transformer embeddings and Ollama fallbacks, this skill is specifically architected to support air-gapped or private network deployments without cloud dependencies.

### What is included in the purchase of this skill?

You receive the full operational logic for managing API endpoints, handling semantic similarity thresholds, and orchestrating the fallback routing between the database and the LLM.

### Does this skill allow me to edit or delete FAQ entries after they have been created?

The current version supports bulk data ingestion and querying, but it does not support updating or deleting existing entries; these must be managed directly within your MongoDB instance.

### How does the skill determine when to use a database answer versus an AI-generated one?

It uses the all-MiniLM-L6-v2 model to create embeddings and applies a 0.75 cosine similarity threshold to ensure that only highly relevant answers are served from your database.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
