-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Dimension parameter for embeddings (#144)
- Loading branch information
Showing
30 changed files
with
267 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# EmbeddingParameters class | ||
|
||
Represents embeddings parameters. | ||
|
||
```csharp | ||
public class EmbeddingParameters | ||
``` | ||
|
||
## Public Members | ||
|
||
| name | description | | ||
| --- | --- | | ||
| [EmbeddingParameters](EmbeddingParameters/EmbeddingParameters.md)() | The default constructor. | | ||
| [Dimensions](EmbeddingParameters/Dimensions.md) { get; set; } | The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models. | | ||
|
||
## Remarks | ||
|
||
See [Create embeddings](https://platform.openai.com/docs/api-reference/embeddings/create) for more information. | ||
## See Also | ||
|
||
* namespace [ChatGptNet.Models.Embeddings](../ChatGptNet.md) | ||
* [EmbeddingParameters.cs](https://github.com/marcominerva/ChatGptNet/tree/master/src/ChatGptNet/Models/Embeddings/EmbeddingParameters.cs) | ||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models.Embeddings/EmbeddingParameters/Dimensions.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,14 @@ | ||
# EmbeddingParameters.Dimensions property | ||
|
||
The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models. | ||
|
||
```csharp | ||
public int? Dimensions { get; set; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [EmbeddingParameters](../EmbeddingParameters.md) | ||
* namespace [ChatGptNet.Models.Embeddings](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models.Embeddings/EmbeddingParameters/EmbeddingParameters.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,14 @@ | ||
# EmbeddingParameters constructor | ||
|
||
The default constructor. | ||
|
||
```csharp | ||
public EmbeddingParameters() | ||
``` | ||
|
||
## See Also | ||
|
||
* class [EmbeddingParameters](../EmbeddingParameters.md) | ||
* namespace [ChatGptNet.Models.Embeddings](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
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
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models.Embeddings/OpenAIEmbeddingModels/TextEmbedding3Large.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,14 @@ | ||
# OpenAIEmbeddingModels.TextEmbedding3Large field | ||
|
||
Most capable embedding model for both english and non-english tasks. It uses a 3072 output dimension. | ||
|
||
```csharp | ||
public const string TextEmbedding3Large; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [OpenAIEmbeddingModels](../OpenAIEmbeddingModels.md) | ||
* namespace [ChatGptNet.Models.Embeddings](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
14 changes: 14 additions & 0 deletions
14
docs/ChatGptNet.Models.Embeddings/OpenAIEmbeddingModels/TextEmbedding3Small.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,14 @@ | ||
# OpenAIEmbeddingModels.TextEmbedding3Small field | ||
|
||
Increased performance over 2nd generation ada embedding model. It uses a 1536 output dimension. | ||
|
||
```csharp | ||
public const string TextEmbedding3Small; | ||
``` | ||
|
||
## See Also | ||
|
||
* class [OpenAIEmbeddingModels](../OpenAIEmbeddingModels.md) | ||
* namespace [ChatGptNet.Models.Embeddings](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
2 changes: 1 addition & 1 deletion
2
docs/ChatGptNet.Models.Embeddings/OpenAIEmbeddingModels/TextEmbeddingAda002.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
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
15 changes: 15 additions & 0 deletions
15
docs/ChatGptNet/ChatGptOptions/DefaultEmbeddingParameters.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,15 @@ | ||
# ChatGptOptions.DefaultEmbeddingParameters property | ||
|
||
Gets or sets the default parameters for embeddings. | ||
|
||
```csharp | ||
public EmbeddingParameters DefaultEmbeddingParameters { get; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [EmbeddingParameters](../../ChatGptNet.Models.Embeddings/EmbeddingParameters.md) | ||
* class [ChatGptOptions](../ChatGptOptions.md) | ||
* namespace [ChatGptNet](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
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
15 changes: 15 additions & 0 deletions
15
docs/ChatGptNet/ChatGptOptionsBuilder/DefaultEmbeddingParameters.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,15 @@ | ||
# ChatGptOptionsBuilder.DefaultEmbeddingParameters property | ||
|
||
Gets or sets the default parameters for embeddings. | ||
|
||
```csharp | ||
public EmbeddingParameters DefaultEmbeddingParameters { get; } | ||
``` | ||
|
||
## See Also | ||
|
||
* class [EmbeddingParameters](../../ChatGptNet.Models.Embeddings/EmbeddingParameters.md) | ||
* class [ChatGptOptionsBuilder](../ChatGptOptionsBuilder.md) | ||
* namespace [ChatGptNet](../../ChatGptNet.md) | ||
|
||
<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll --> |
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
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
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
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
Oops, something went wrong.