Prompt
semantic search for knowledge base and tickets
Latest observation
Oct 13, 2026
OpenAI APIWeb search: off
Here’s a practical way to think about semantic search for a knowledge base and support tickets:
What it is
Semantic search finds results by meaning, not just keyword overlap.
So a query like:
- “How do I reset my password?”
- “Can’t log into my account”
- “Need to regain access”
can all surface the same relevant KB article or past ticket, even if the exact words differ.
Why it’s useful for KB + tickets
- Better self-service: users find articles even when they phrase things differently.
- Ticket deflection: surface answers from the KB before creating a new ticket.
- Agent assist: suggest similar resolved tickets and relevant articles while an agent is working.
- Duplicate detection: identify existing tickets with the same issue.
- Faster triage: route tickets based on semantic similarity to known categories.
Typical architecture
-
Ingest content
- KB articles
- Ticket titles, descriptions, resolutions, comments
- Optional metadata: product, severity, customer, tags, status
-
Chunk the text
- Split long articles/tickets into smaller meaningful sections
- Keep title + body + resolution separate if useful
-
Create embeddings
- Convert each chunk into a vector using an embedding model
-
Index in a vector database
- Store embeddings in a vector search system
- Common options: Pinecone, Weaviate, Milvus, Elasticsearch/OpenSearch vector search, pgvector, FAISS
-
Query flow
- Embed the user query
- Retrieve top-k similar chunks/tickets/articles
- Optionally rerank results with a cross-encoder or LLM
-
Apply business rules
- Boost recent tickets, high-confidence KB articles, resolved cases
- Filter by product/version/tenant/access permissions
Good search patterns
1. Hybrid search
Combine:
- Keyword/BM25 for exact terms, IDs, error codes
- Vector search for semantic matches
This is usually better than semantic search alone.
2. Two-stage retrieval
- Stage 1: fast vector + keyword retrieval
- Stage 2: rerank top results for precision
3. Metadata filtering
Examples:
- only show articles for the customer’s product
- exclude internal-only tickets
- limit by language, region, or access level
Important design considerations
- Privacy and access control: tickets may contain sensitive data.
- Freshness: new tickets and updated articles should be indexed quickly.
- Deduplication: multiple tickets may describe the same issue.
- Quality of text: ticket text is often noisy; cleaning and normalization help.
- Evaluation: measure top-k relevance, click-through, deflection rate, and agent acceptance.
Useful result types
For a support workflow, return:
- Best matching KB article
- Similar resolved tickets
- Suggested troubleshooting steps
- Related incident or known issue
- Confidence score and why it matched
Example use cases
- Customer searches: “printer keeps saying offline” → show troubleshooting article + similar resolved tickets
- Agent opens a new ticket about “SAML login failure” → system suggests same known issue with fix
- Triage bot classifies “billing double charge” to finance queue using semantic similarity
If you’re building it
A strong baseline stack is:
- Embeddings: OpenAI text-embedding model or a strong open-source embedding model
- Search: Elasticsearch/OpenSearch with hybrid + vector, or pgvector for simpler setups
- Reranking: cross-encoder or LLM-based reranker
- UI: show article + ticket suggestions with filters and feedback buttons
If you want, I can also give you:
- a reference architecture,
- a data schema, or
- a sample implementation for semantic search over KB articles and tickets.