- Semantic Search: Find conceptually similar content, not just exact matches
- Knowledge Base Integration: Search across uploaded documents and files
- Similarity Scoring: Filter results by similarity threshold
- Configurable Results: Control the number of results returned
- RAG Support: Perfect for building question-answering and information retrieval workflows
token config, which defaults to {{ secrets.JINBAFLOW_WS_API_KEY }} β you usually do not need to set it explicitly.
Configuration:
token(string): Jinba Flow workspace API key (stored as a secret; defaults to{{ secrets.JINBAFLOW_WS_API_KEY }})
Input Parameters
Output Structure
The output has the following top-level fields (steps.<id>.results, steps.<id>.query, steps.<id>.totalResults β not under result):
Build a document Q&A system
Example: Research Assistant
Example: Content Recommendation
Best Practices
Query Optimization
- Use natural language: Write queries as you would ask a human
- Be specific: More specific queries often yield better results
- Include context: Add relevant keywords and context terms
Threshold Selection
- 0.7-1.0: Very high similarity, exact or near-exact matches
- 0.4-0.7: High similarity, closely related content
- 0.2-0.4: Moderate similarity, potentially relevant content
- 0.0-0.2: Low similarity, may include tangentially related content
Performance Tips
- Limit topK: Donβt retrieve more results than needed
- Adjust threshold: Higher thresholds = fewer, more relevant results
- Use metadata: Leverage chunk metadata for additional filtering
Set up a knowledge base
Before using vector search, ensure your knowledge base contains relevant documents:- Upload Documents: Add PDFs, text files, or other supported formats
- Processing: Allow time for document chunking and vectorization
- Test Queries: Start with simple queries to understand your data
- Iterate: Refine queries and thresholds based on results
Use Cases
- Customer Support: Find relevant documentation for user questions
- Research Assistant: Discover related research papers and documents
- Content Discovery: Recommend similar articles or resources
- FAQ Automation: Automatically answer common questions
- Document Analysis: Find specific information across large document sets
- Knowledge Management: Quick access to institutional knowledge
- Legal Research: Search through contracts and legal documents
- Product Information: Find technical specifications and manuals