Documentation
    Preparing search index...

    Class ChatController

    Controller managing chat sessions, local context extraction, and LLM message dispatching.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Dispatches user message thread, matches local documents, extracts context, and returns the LLM stream.

      Parameters

      • messages: { content: string; role: string }[]

        Complete message thread history.

      • documents: ChatDocument[]

        Availables documents for keyword/tag RAG injection.

      Returns Promise<
          {
              enrichedContentLength: number;
              finalPrompt: string;
              matchedDocsCount: number;
              model: string;
              stream: AsyncIterable<string>;
          },
      >