Skip to main content

Overview

The Jinba Knowledge Base tools allow you to add files to and update files in knowledge bases within the Jinba ecosystem. These tools enable you to maintain up-to-date information repositories that can be accessed by other tools and workflows (such as vector search) for enhanced AI-powered operations.

Key Features

  • JINBA_KNOWLEDGE_BASE_FILE_ADD: Add a file to a knowledge base, with configurable chunking
  • JINBA_KNOWLEDGE_BASE_UPDATE: Update an existing file in a knowledge base with new content
  • Integration with vector search capabilities
  • Synchronous or asynchronous execution (wait for chunking or return immediately)

Authentication

These tools authenticate with a workspace secret key via the token config, which defaults to {{ secrets.JINBAFLOW_WS_API_KEY }} — you usually do not need to set it explicitly.

Tools

JINBA_KNOWLEDGE_BASE_FILE_ADD

Add a file to a knowledge base. Input: Output:

JINBA_KNOWLEDGE_BASE_UPDATE

Update an existing file in a knowledge base with new content. Input: Output:

Examples

Example: Add a File to a Knowledge Base

Example: Update an Existing Knowledge Base File

Example: Generate a Report and Store It in a Knowledge Base

Use Cases

  • Maintaining product documentation and changelogs
  • Building comprehensive troubleshooting guides
  • Creating workflow documentation repositories
  • Storing best practices and guidelines
  • Building FAQ and support knowledge bases
  • Keeping RAG search sources up to date automatically

Best Practices

  • Use descriptive filenames so files are easy to identify later
  • Tune chunkerSettings for your content: smaller chunks (256-512) for precise retrieval, larger chunks (1024-2048) for maintaining context
  • Use SYNCHRONOUS execution when downstream steps depend on the file being searchable
  • Use ASYNCHRONOUS execution for large files to avoid blocking the flow
  • Check the status output (pending / processing / completed / failed) before relying on the file in searches
  • Update existing files with JINBA_KNOWLEDGE_BASE_UPDATE instead of adding duplicates