-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/adds-mvi-limits
- Loading branch information
Showing
6 changed files
with
305 additions
and
69 deletions.
There are no files selected for viewing
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
32 changes: 32 additions & 0 deletions
32
i18n/ja/docusaurus-plugin-content-docs/current/vector-index/develop/index.md
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
sidebar_position: 2 | ||
sidebar_label: Develop | ||
sidebar_class_name: "sidebar-item-api-reference" | ||
title: Developing applications with Momento SDKs | ||
description: Learn the core concepts for getting started with the Momento SDKs. | ||
--- | ||
|
||
import { SdkExampleTabs } from "@site/src/components/SdkExampleTabs"; | ||
// This import is necessary even though it looks like it's un-used; The inject-example-code-snippet | ||
// plugin will transform instances of SdkExampleTabs to SdkExampleTabsImpl | ||
import { SdkExampleTabsImpl } from "@site/src/components/SdkExampleTabsImpl"; | ||
|
||
# Developing applications with Momento SDKs | ||
|
||
Welcome! This page provides information about common constructs you will need in order to assemble Momento clients in all of our SDKs. This page covers how to provide your Momento credentials (called api keys), how to configure your client, and some basic information about error handling and production readiness. | ||
|
||
![a technical illustration on a white background depicting the intersection of speed, ease of use, and security.](@site/static/img/city.jpg) | ||
|
||
## Constructing a Preview Momento Vector Index client | ||
|
||
Work in progress. | ||
|
||
## Instantiating credential providers using Momento api keys | ||
|
||
You need to provide a Momento auth token when instantiating a Momento client. If you don't have one yet, you can get one from the [Momento Web Console](https://console.gomomento.com/). Once you have a token, provide it to Momento SDKs when you create an instance of `CredentialProvider`. There are convenient factory methods provided to construct a `CredentialProvider` object, either from an environment variable or from a String. Below is an example of how to instantiate `CredentialProvider` from an environment variable: | ||
|
||
<SdkExampleTabs snippetId={'API_CredentialProviderFromEnvVar'} /> | ||
|
||
If you're storing your Momento auth token in a secret manager such as [AWS Secret Manager](https://aws.amazon.com/secrets-manager/), [GCP Secret Manager](https://cloud.google.com/secret-manager), or a local config file, you must first retrieve the credentials from there and then instantiate a `CredentialProvider` from a string, like this: | ||
|
||
<SdkExampleTabs snippetId={'API_CredentialProviderFromString'} /> |
10 changes: 10 additions & 0 deletions
10
i18n/ja/docusaurus-plugin-content-docs/current/vector-index/develop/sdks/_category_.json
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"label": "SDKs", | ||
"position": 7, | ||
"collapsible": true, | ||
"collapsed": true, | ||
"link": { | ||
"description": "Momento SDKs, available in all of your favorite programming languages!" | ||
}, | ||
"className": "sidebar-item-api-reference" | ||
} |
Oops, something went wrong.