-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into ericapywang/create-index
- Loading branch information
Showing
9 changed files
with
477 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
use std::collections::HashMap; | ||
|
||
#[derive(Debug, Clone)] | ||
pub struct Config { | ||
pub api_key: String, | ||
pub controller_url: String, | ||
pub additional_headers: HashMap<String, String>, | ||
pub source_tag: Option<String>, | ||
} | ||
|
||
impl Config { | ||
pub fn new(api_key: String) -> Self { | ||
pub fn new(api_key: String, source_tag: Option<String>) -> Self { | ||
Config { | ||
api_key, | ||
controller_url: "https://api.pinecone.io".to_string(), | ||
source_tag: None, | ||
additional_headers: HashMap::new(), | ||
source_tag, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ pub mod config; | |
pub mod control; | ||
pub mod pinecone; | ||
pub mod utils; | ||
pub mod models; | ||
pub mod models; |
Oops, something went wrong.