Documentation Index
Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
veryfront/embedding
Embedding — RAG primitives for chunking, embedding, and similarity search. Provides a facade over the framework’s current embedding runtime and LangChain text splitting behind veryfront’s own API.Import
Examples
Exports
Functions
| Name | Description | Source |
|---|---|---|
chunk | Splits text into overlapping chunks for embedding. | source |
clearEmbeddingProviders | Clear all registered embedding providers (for testing). | source |
createUploadHandler | Creates HTTP route handlers for upload, listing, and deletion. | source |
embedding | Creates an embedding facade. | source |
loadUpload | Extracts plain text from various upload formats. | source |
ragStore | Creates a persistent RAG store with lazy embedding and similarity search. | source |
registerEmbeddingProvider | Register an embedding provider factory. | source |
resolveEmbeddingModel | Resolve a “provider/model” string to an embedding runtime instance. | source |
similarity | Compute cosine similarity between two numeric vectors. | source |
useUploads | useUploads hook for managing RAG upload lifecycle. | source |
vectorStore | Creates an in-memory vector store with integrated embedding and similarity search. | source |
Types
| Name | Description | Source |
|---|---|---|
ChunkOptions | Options accepted by chunk. | source |
Embedding | Public API contract for embedding. | source |
EmbeddingConfig | Configuration used by embedding. | source |
RagChunk | Public API contract for rag chunk. | source |
RagDocumentMeta | Public API contract for rag document meta. | source |
RagSearchOptions | Options accepted by rag search. | source |
RagSearchResult | Result returned from rag search. | source |
RagStore | Public API contract for rag store. | source |
RagStoreBackend | Public API contract for rag store backend. | source |
RagStoreConfig | Configuration used by rag store. | source |
RagStoreData | Public API contract for rag store data. | source |
SearchOptions | Options accepted by search. | source |
SearchResult | Result returned from search. | source |
UseUploadsOptions | Options accepted by use uploads. | source |
UseUploadsResult | Result returned from use uploads. | source |
VectorStore | Public API contract for vector store. | source |
VectorStoreConfig | Configuration used by vector store. | source |
Related
Architecture:- 07-provider-runtime: Embedding shares provider model resolution