Expand description
Traits in Swiftide allow for easy extendability
All steps defined in the indexing pipeline and the generic transformers can also take a trait. To bring your own transformers, models and loaders, all you need to do is implement the trait and it should work out of the box.
Modules§
- __mock_ Mock Batchable Transformer 
- __mock_ Mock Batchable Transformer_ Batchable Transformer 
- __mock_ Mock Batchable Transformer_ Clone 
- __mock_ Mock Chunker Transformer 
- __mock_ Mock Chunker Transformer_ Chunker Transformer 
- __mock_ Mock Chunker Transformer_ Clone 
- __mock_ Mock Embedding Model 
- __mock_ Mock Embedding Model_ Clone 
- __mock_ Mock Embedding Model_ Embedding Model 
- __mock_ Mock Loader 
- __mock_ Mock Loader_ Clone 
- __mock_ Mock Loader_ Loader 
- __mock_ Mock Node Cache 
- __mock_ Mock Node Cache_ Clone 
- __mock_ Mock Node Cache_ Node Cache 
- __mock_ Mock Persist 
- __mock_ Mock Persist_ Clone 
- __mock_ Mock Persist_ Persist 
- __mock_ Mock Simple Prompt 
- __mock_ Mock Simple Prompt_ Clone 
- __mock_ Mock Simple Prompt_ Simple Prompt 
- __mock_ Mock Sparse Embedding Model 
- __mock_ Mock Sparse Embedding Model_ Clone 
- __mock_ Mock Sparse Embedding Model_ Sparse Embedding Model 
- __mock_ Mock Transformer 
- __mock_ Mock Transformer_ Clone 
- __mock_ Mock Transformer_ Transformer 
Structs§
- MockBatchable Transformer 
- MockChunker Transformer 
- MockEmbedding Model 
- MockLoader 
- MockNode Cache 
- MockPersist 
- MockSimple Prompt 
- MockSparse Embedding Model 
- MockTransformer 
Traits§
- BatchableTransformer 
- Transforms batched single nodes into streams of nodes
- ChunkerTransformer 
- Turns one node into many nodes
- DynClone
- This trait is implemented by any type that implements [std::clone::Clone].
- EmbeddingModel 
- Embeds a list of strings and returns its embeddings. Assumes the strings will be moved.
- Loader
- Starting point of a stream
- NodeCache 
- Caches nodes, typically by their path and hash Recommended to namespace on the storage
- Persist
- Persists nodes
- SimplePrompt 
- Given a string prompt, queries an LLM
- SparseEmbedding Model 
- Embeds a list of strings and returns its embeddings. Assumes the strings will be moved.
- Transformer
- Transforms single nodes into single nodes
- WithBatch Indexing Defaults 
- Allows for passing defaults from the pipeline to the batch transformer Required for batch transformers as at least a marker, implementation is not required
- WithIndexing Defaults 
- Allows for passing defaults from the pipeline to the transformer Required for batch transformers as at least a marker, implementation is not required