WeKnora Examples & Use Cases

Explore real-world examples and use cases for WeKnora. Learn how organizations are using WeKnora to build intelligent document understanding and Q&A systems.

Enterprise Knowledge Base

Build intelligent knowledge bases for your organization's documentation, policies, and procedures.

Use Case

A large organization needs to make their internal documentation searchable and queryable. Employees should be able to ask questions about company policies, procedures, and technical documentation.

Implementation Steps

  1. Create a knowledge base for "Company Policies"
  2. Upload all policy documents (PDF, Word, Markdown)
  3. Configure embedding and LLM models
  4. Enable Agent mode for complex queries
  5. Deploy as internal Q&A system

Benefits

Customer Support Chatbot

Create AI-powered support agents that can answer customer questions using your product documentation.

Use Case

A SaaS company wants to reduce support ticket volume by providing instant answers to common customer questions using their product documentation and help articles.

Implementation

Example Query

User: "How do I reset my password?" Bot: "To reset your password, follow these steps: 1. Go to the login page 2. Click 'Forgot Password' 3. Enter your email address 4. Check your email for reset instructions [Source: User Guide, Chapter 3, Page 12]"

Research & Documentation System

Transform research papers and technical documentation into searchable, queryable knowledge systems.

Use Case

A research institution needs to make thousands of research papers searchable. Researchers should be able to ask questions like "What are the latest findings on climate change?" and get relevant excerpts from multiple papers.

Features Used

Example

Query: "What are the main causes of biodiversity loss?" Response: "Based on recent research papers, the main causes of biodiversity loss include: 1. Habitat destruction and fragmentation 2. Climate change 3. Overexploitation of resources 4. Pollution 5. Invasive species [Sources: - "Global Biodiversity Assessment 2023", pages 45-67 - "Climate Impact on Ecosystems", pages 12-34]"

WeChat Integration

Deploy intelligent Q&A services within the WeChat ecosystem through the WeChat Dialog Open Platform.

Use Case

A company wants to provide customer support through WeChat Official Accounts. Customers can ask questions and get instant answers from the company's knowledge base.

Implementation

Benefits

Document Upload Examples

Learn how to upload documents using different methods.

Method 1: Web UI Drag and Drop

  1. Navigate to your knowledge base
  2. Click "Upload Documents"
  3. Drag files into the upload area
  4. Wait for processing to complete

Method 2: API Upload

curl -X POST \ http://localhost:8080/api/v1/knowledgebases/{kb_id}/documents \ -H "x-api-key: sk-your-api-key" \ -F "file=@document.pdf" \ -F "tags=policy,internal"

Method 3: Folder Import

  1. Use the Web UI folder import feature
  2. Select a folder containing documents
  3. All documents in the folder will be processed

Agent Mode Q&A Examples

Examples of complex queries handled by Agent mode.

Example 1: Multi-Step Reasoning

User: "What are the requirements for getting a visa, and how long does the process take?" Agent Process: 1. Searches knowledge base for visa requirements 2. Searches for processing time information 3. Combines information from multiple sources 4. Provides comprehensive answer with sources

Example 2: Tool Usage

User: "What's the current weather and how does it affect our shipping policies?" Agent Process: 1. Uses web search tool to get current weather 2. Searches knowledge base for shipping policies 3. Correlates weather conditions with policy rules 4. Provides contextual answer

Example 3: Cross-Knowledge Base Query

User: "Compare our product features with competitor X" Agent Process: 1. Searches internal product knowledge base 2. Uses web search for competitor information 3. Compares features side-by-side 4. Provides structured comparison

Knowledge Graph Visualization

Examples of knowledge graph generation and visualization.

Use Case

Visualize relationships between different sections of a technical manual to understand document structure and connections.

Features

Go Client Examples

Code examples using the WeKnora Go client library.

Basic Search Example

package main import ( "context" "fmt" "log" "github.com/Tencent/WeKnora/client" ) func main() { cfg := &client.Config{ BaseURL: "http://localhost:8080/api/v1", APIKey: "sk-your-api-key", } c := client.New(cfg) ctx := context.Background() // Search knowledge base results, err := c.Search(ctx, "kb_123", &client.SearchRequest{ Query: "What is WeKnora?", TopK: 5, Threshold: 0.7, Rerank: true, }) if err != nil { log.Fatal(err) } fmt.Printf("Found %d results:\n", len(results)) for _, result := range results { fmt.Printf("- Score: %.2f\n", result.Score) fmt.Printf(" Content: %s\n\n", result.Content[:100]) } }

Document Upload Example

// Upload a document file, err := os.Open("document.pdf") if err != nil { log.Fatal(err) } defer file.Close() doc, err := c.UploadDocument(ctx, "kb_123", &client.UploadRequest{ File: file, Tags: []string{"policy", "internal"}, }) if err != nil { log.Fatal(err) } fmt.Printf("Document uploaded: %s\n", doc.ID)

Best Practices

Tips for getting the best results from WeKnora.

Document Preparation

Query Optimization

Retrieval Tuning

Get Started with Examples

Ready to try these examples? Start by setting up WeKnora and creating your first knowledge base.

Start Building Read Documentation