Creating an Agent with Private Knowledge
This guide will walk you through the process of creating a Connect agent that can access and leverage your organization's private knowledge to provide accurate, relevant responses.
What is a Private Knowledge Agent?
A private knowledge agent is an AI assistant that has been granted access to your organization's specific information, allowing it to:
- Answer questions based on your internal documents
- Provide information from your knowledge base
- Reference your proprietary data when generating responses
- Combine general knowledge with your specific content
Prerequisites
Before creating your private knowledge agent, you'll need:
- A Connect account with appropriate permissions
- Documents you want to make available to the agent (currently limited to 150KB per file)
- Clear understanding of what information is appropriate to include
Step 1: Create a New Agent
- Log in to your Connect dashboard
- Navigate to the "Agents" section
- Click "Create New Agent"
- Provide a name for your agent
- Enter a system prompt that defines how your agent should behave
- Configure basic settings:
- AI Provider: Select the LLM provider for your agent
- Optional: Enable rephrasing and select a rephrasing provider
- Optional: Enable guardrailing and configure guardrailing rules
- Optional: Select an embedding provider for knowledge processing
- Optional: Choose a chunking strategy for document processing
- Click "Create Agent"
Step 2: Upload Knowledge Documents
- Navigate to your newly created agent's page
- Find the "Knowledge Base" section
- Click "Upload Document"
- Select the file you want to upload (supported formats include PDF, TXT, DOCX, etc.)
- The system will automatically process your document:
- The document will be chunked according to your selected strategy
- Text will be extracted and vectorized using the chosen embedding provider
- The knowledge will be indexed for retrieval
Step 3: Monitor Document Processing
- After uploading, your document will be listed with a "pending" or "processing" status
- Wait for the status to change to "completed"
- If processing fails, you'll see an error message with details
- You can retry processing if needed
Step 4: Add Integrations (Optional)
- In your agent's configuration, find the "Integrations" section
- Browse available integrations from the marketplace
- Select integrations appropriate for your use case
Step 5: Test Your Agent
- Use the Chat interface to test your agent
- Ask questions related to the content in your uploaded documents
- Verify that the agent provides accurate responses based on your knowledge base
- Test edge cases and different query formulations
Step 6: Publish Your Agent
- Once you're satisfied with your agent's performance, toggle the "Published" setting
- This makes your agent accessible via public links and API
- You can unpublish at any time to restrict access
Best Practices
Document Preparation
- Keep documents focused on specific topics
- Ensure documents are well-structured for better chunking
- Consider file size limitations (currently 150KB per file)
- Use clear formatting that's easy to parse
System Prompt Design
- Be specific about how the agent should use the knowledge base
- Include instructions for handling uncertain information
- Define the tone and style of responses
- Establish clear boundaries for what the agent should and shouldn't do
Knowledge Management
- Regularly update documents as information changes
- Remove outdated content
- Monitor which documents are frequently referenced
- Add missing information based on user queries
Troubleshooting
Agent Not Using Knowledge Base
- Verify documents were processed successfully
- Check that questions are related to the document content
- Review your system prompt for conflicting instructions
- Try reformulating your questions
Processing Failures
- Check file size (must be under 150KB)
- Ensure file formats are supported
- Try simplifying complex documents
- Use the "Retry" option for failed processing
Response Quality Issues
- Improve document quality and organization
- Refine your system prompt
- Try different chunking strategies
- Consider using a different embedding provider
By following these steps and best practices, you'll create an AI agent that leverages your organization's specific knowledge to provide valuable, accurate responses.