Skip to content

@pondoknusa/rag ​

RAG ingestion and retrieval helpers for Pondoknusa

Install ​

bash
npm install @pondoknusa/rag @pondoknusa/database

Peer dependencies must be installed in the app (they are not auto-installed on older npm). Drivers that call extend() share one instance of the host package.

Metadata ​

FieldValue
Version6.0.0
Sourcepackages/rag
CategoryAI & agents
Node.js>=26

Peer dependencies ​

Pondoknusa dependencies ​

Public exports ​

From the package entry point (dist/index.d.ts). Deep imports are not supported.

Values ​

  • ConversationMemory
  • ConversationMemoryOptions
  • ConversationMessageRecord
  • ConversationRole
  • IngestFileOptions
  • LoadDocumentOptions
  • LoadedDocument
  • Rag
  • RagOptions
  • RagStreamOptions
  • RagTokenStream
  • RerankFn
  • applyRerank
  • buildGroundedPrompt
  • defaultGroundedPromptTemplate
  • extractPdfText
  • ingestDocument
  • ingestFile
  • loadDocument
  • loadPromptTemplate
  • renderGroundedPrompt
  • resolveSafeDocumentPath
  • streamRagResponse

Types ​

  • IngestDocumentInput
  • IngestDocumentOptions
  • RagChunk
  • RagRetrieveOptions

Guide ​

See the Getting started guide for usage examples.

Released under the MIT License.