From a0b101a17f9aea46a26eafecbadcd371811abb3a Mon Sep 17 00:00:00 2001 From: qwdsds <50311944+qwdsds@users.noreply.github.com> Date: Fri, 27 Dec 2024 09:52:33 +0800 Subject: [PATCH] chore: fix types --- rig-core/src/embeddings/builder.rs | 2 +- rig-core/src/loaders/file.rs | 2 +- rig-core/src/pipeline/mod.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rig-core/src/embeddings/builder.rs b/rig-core/src/embeddings/builder.rs index f9e80779..c730bae2 100644 --- a/rig-core/src/embeddings/builder.rs +++ b/rig-core/src/embeddings/builder.rs @@ -71,7 +71,7 @@ impl EmbeddingsBuilder { Ok(self) } - /// Add multiple documents to be embedded to the builder. `documents` must be iteratable + /// Add multiple documents to be embedded to the builder. `documents` must be iterable /// with items that implement the [Embed] trait. pub fn documents(self, documents: impl IntoIterator) -> Result { let builder = documents diff --git a/rig-core/src/loaders/file.rs b/rig-core/src/loaders/file.rs index 84eb1864..e63d1f49 100644 --- a/rig-core/src/loaders/file.rs +++ b/rig-core/src/loaders/file.rs @@ -123,7 +123,7 @@ impl<'a> FileLoader<'a, Result> { /// [FileLoader::with_dir] and returns the path along with the content. /// /// # Example - /// Read files in directory "files/*.txt" and print the content for cooresponding path for each + /// Read files in directory "files/*.txt" and print the content for corresponding path for each /// file. /// /// ```rust diff --git a/rig-core/src/pipeline/mod.rs b/rig-core/src/pipeline/mod.rs index 2c5c195c..684e752a 100644 --- a/rig-core/src/pipeline/mod.rs +++ b/rig-core/src/pipeline/mod.rs @@ -43,9 +43,9 @@ //! ## Parallel Operations //! The pipeline API also provides a [parallel!](crate::parallel!) and macro for running operations in parallel. //! The macro takes a list of ops and turns them into a single op that will duplicate the input -//! and run each op in concurently. The results of each op are then collected and returned as a tuple. +//! and run each op in concurrently. The results of each op are then collected and returned as a tuple. //! -//! For example, the pipeline below runs two operations concurently: +//! For example, the pipeline below runs two operations concurrently: //! ```rust //! use rig::{pipeline::{self, Op, map}, parallel}; //!