Class CodeChunker

java.lang.Object
com.tnsai.server.rag.CodeChunker

public final class CodeChunker extends Object
Server-facing source-code chunking facade.

The facade delegates to the canonical intelligence extractor and core chunker so declarative and server callers share symbol boundaries, limits, identifiers, and provenance.

  • Method Details

    • chunk

      public static List<com.tnsai.knowledge.Document> chunk(Path filePath, String content, String language)
      Splits one source file into bounded retrieval documents.
    • detectLanguage

      public static String detectLanguage(String fileName)
      Derives the canonical language key from a file name.