citeformer.integrations¶
Third-party framework integrations.
Submodules adapt between citeformer’s Source / GenerationResult
types and the corresponding document / response types of popular RAG
frameworks. They’re duck-typed — we don’t import LangChain / LlamaIndex
at module load, so you can import citeformer.integrations.langchain
without either library installed, as long as you pass in objects with
the expected attribute shapes.
Submodules:
- mod:
citeformer.integrations.langchain— LangChainDocument→Source, plus helpers to feed a LangChain retriever output straight intoCiteformer.generate.
- mod:
citeformer.integrations.llamaindex— LlamaIndexTextNode/NodeWithScore→Source, same pattern.