Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoChenOSU committed May 5, 2023
1 parent 126e17b commit 5e80d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class DocumentMemoryOptions

/// <summary>
/// Similarity threshold to avoid document memory duplication when importing documents to memory.
/// The higher the value, the more similar document memories will be allowed.
/// The lower the value, the more unique document memories will be allowed.
/// </summary>
[Range(0.0, 1.0)]
public double DeduplicationSimilarityThreshold { get; set; } = 0.8;
Expand Down
4 changes: 3 additions & 1 deletion samples/apps/copilot-chat-app/webapi/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@
// - Prevent large uploads by setting a file size limit (in bytes) as suggested here:
// https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-6.0
// - Deduplication similarity threshold is used to determine if a document is similar to
// another document that is already in memory.
// another document that is already in memory:
// - The higher the value, the more similar document memories will be allowed.
// - The lower the value, the more unique document memories will be allowed.
//
"DocumentMemory": {
"GlobalDocumentCollectionName": "global-documents",
Expand Down

0 comments on commit 5e80d1e

Please sign in to comment.