BonsaiBONSAI
事例Case study

RAG knowledge base

AI system for a corporate and regulatory knowledge base

RAG knowledge base
10+
document formats
概要About the project01

We built an AI system for a bank that answers natural-language questions about its corporate and regulatory knowledge base. It combines external regulations with internal regulations, policies, instructions, and templates, and returns a structured answer with requirements, related documents, and citations to primary sources.

課題Key challenge02

Classic semantic search is not enough here. An answer has to account for the links between regulations, internal documents, and requirements, pull data from several sources, and stay verifiable: every conclusion rests on a specific primary source.

要点The solution

The solution combines RAG with a corporate knowledge graph. The system breaks uploaded PDF, Word, and ZIP files into sections, articles, clauses, and requirements, and links the extracted entities to each other. For each query, the graph is rebuilt around the relevant topic, and the answer draws on three sources at once: vector search, knowledge graph links, and the LLM. Five scenarios run on top of this: finding applicable regulations, requirements mapping, document review, comparing internal regulations with external requirements, and checklist-based legal screening.

工程Process03
  1. 0101

    Knowledge base analysis

    Studying the structure of laws and regulations, internal regulations, policies, instructions, and templates.

  2. 0202

    Document pipeline

    Building ingestion and parsing for PDF, Word, and ZIP files and extracting text and document structure.

  3. 0303

    Knowledge graph

    Extracting entities and linking documents, requirements, regulations, processes, and sources.

  4. 0404

    RAG retrieval

    Implementing vector search, the retrieval pipeline, and natural-language answers with source citations.

  5. 0505

    Document review

    Scenarios for finding missing requirements, potential conflicts, and weak wording.

  6. 0606

    Interface & testing

    Knowledge base interface, link visualization, and testing the system on real use cases.

成果Results04
10+document formats
5knowledge base scenarios
3retrieval methods per answer
記録Project gallery05
Knowledge graph rebuilt around a query
Structured answer with citations to primary sources
技術Tech stack
  • 01LLM
  • 02RAG
  • 03Knowledge Graph
  • 04Vector Search
  • 05OCR
  • 06Python
  • 07FastAPI
  • 08PostgreSQL
  • 09Graph DB
  • 10LangChain / LlamaIndex

Have a similar challenge?

We’ll review it and estimate within 5 business days.

Discuss your project