Expand description
§FerricLink Core
Core abstractions for the FerricLink ecosystem, inspired by LangChain Core. This crate provides the fundamental building blocks for building AI applications with language models, tools, vector stores, and more.
Re-exports§
pub use caches::BaseCache;
pub use caches::CacheStats;
pub use caches::CachedGenerations;
pub use caches::InMemoryCache;
pub use caches::TtlCache;
pub use env::RuntimeEnvironment;
pub use env::get_fresh_runtime_environment;
pub use env::get_runtime_environment;
pub use errors::ErrorCode;
pub use errors::FerricLinkError;
pub use errors::IntoFerricLinkError;
pub use errors::OutputParserException;
pub use errors::Result;
pub use errors::TracerException;
pub use errors::create_error_message;
pub use example_selectors::BaseExampleSelector;
pub use example_selectors::Example;
pub use example_selectors::LengthBasedExampleSelector;
pub use example_selectors::MaxMarginalRelevanceExampleSelector;
pub use example_selectors::SemanticSimilarityExampleSelector;
pub use example_selectors::sorted_values;
pub use globals::clear_llm_cache;
pub use globals::disable_debug;
pub use globals::disable_verbose;
pub use globals::enable_debug;
pub use globals::enable_verbose;
pub use globals::get_debug;
pub use globals::get_globals;
pub use globals::get_verbose;
pub use globals::globals_summary;
pub use globals::has_llm_cache;
pub use globals::init_globals;
pub use globals::is_debug;
pub use globals::is_verbose;
pub use globals::reset_globals;
pub use globals::set_debug;
pub use globals::set_llm_cache;
pub use globals::set_verbose;
pub use globals::toggle_debug;
pub use globals::toggle_verbose;
pub use rate_limiters::AdvancedRateLimiter;
pub use rate_limiters::BaseRateLimiter;
pub use rate_limiters::InMemoryRateLimiter;
pub use rate_limiters::InMemoryRateLimiterConfig;
pub use rate_limiters::RateLimiterConfig;
pub use serializable::Serializable;
Modules§
- caches
- Cache classes for FerricLink Core.
- callbacks
- Callback system for FerricLink Core
- documents
- Document types for FerricLink Core
- embeddings
- Embedding abstractions for FerricLink Core
- env
- Utilities for getting information about the runtime environment.
- errors
- Error types for FerricLink Core
- example_
selectors - Example selectors for FerricLink Core.
- globals
- Global values and configuration that apply to all of FerricLink.
- language_
models - Language model abstractions for FerricLink Core
- messages
- Message types for FerricLink Core
- rate_
limiters - Interface for rate limiters and an in-memory rate limiter.
- retrievers
- Retriever abstractions for FerricLink Core
- runnables
- Runnable trait and related abstractions for FerricLink Core
- serializable
- Serializable trait for FerricLink objects
- structured_
query - Structured Query Language
- tools
- Tool abstractions for FerricLink Core
- utils
- Utility functions for FerricLink Core
- vectorstores
- Vector store abstractions for FerricLink Core
Macros§
- impl_
loadable - Helper macro to implement Loadable for a type
- impl_
serializable - Helper macro to implement Serializable for a type
Constants§
- VERSION
- Version of the FerricLink Core crate
Functions§
- init
- Initialize the FerricLink Core crate