Skip to content

Commit

Permalink
chore: fixed a typo in a doc-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jul 12, 2024
1 parent cbac495 commit 77399a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ pub struct HuggingFaceEmbedderSettings {
/// api_key: "anOpenAiApiKey".to_string(),
/// model: Some("text-embedding-3-small".to_string()),
/// document_template: Some("A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}".to_string()),
/// dimensions: Some(1536),
/// ..Default::default()
/// };
/// # let expected = r#"{"apiKey":"anOpenAiApiKey","model":"text-embedding-3-small","documentTemplate":"A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}","dimensions": 1536"}"#;
/// # let expected = r#"{"apiKey":"anOpenAiApiKey","model":"text-embedding-3-small","documentTemplate":"A document titled {{doc.title}} whose description starts with {{doc.overview|truncatewords: 20}}","dimensions":1536}"#;
/// # let expected: OpenapiEmbedderSettings = serde_json::from_str(expected).unwrap();
/// # assert_eq!(embedder_setting, expected);
/// ```
Expand Down

0 comments on commit 77399a2

Please sign in to comment.