You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agent-framework/tutorials/quick-start.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,13 @@ Before you begin, ensure you have the following:
32
32
> This demo uses Azure CLI credentials for authentication. Make sure you're logged in with `az login` and have access to the Azure OpenAI resource. For more information, see the [Azure CLI documentation](/cli/azure/authenticate-azure-cli-interactively). It is also possible to replace the `AzureCliCredential` with an `ApiKeyCredential` if you
33
33
have an api key and do not wish to use role based authentication, in which case `az login` is not required.
34
34
35
+
## Create a project
36
+
37
+
```powershell
38
+
dotnet new console -o AgentFrameworkQuickStart
39
+
cd AgentFrameworkQuickStart
40
+
```
41
+
35
42
## Install Packages
36
43
37
44
Packages will be published to [NuGet Gallery | MicrosoftAgentFramework](https://www.nuget.org/profiles/MicrosoftAgentFramework).
You can add the vector store to the dependency injection container available on the `KernelBuilder` or to
48
-
the `IServiceCollection` dependency injection container using extension methods provided by Semantic Kernel.
46
+
You can add the vector store to the dependency injection container available on the `KernelBuilder` or to the `IServiceCollection` dependency injection container using extension methods provided by Semantic Kernel.
- Start with **Hyperscale Index** for pure vector searches and large datasets (scales to billions)
287
+
- Choose **Composite Index** when scalar filters significantly reduce your search space (works well for tens of millions to billions of vectors)
288
+
- Use **Search Vector Index** for hybrid search combining text and vectors
289
+
290
+
291
+
[Detailed comparison of vector index types](https://docs.couchbase.com/server/current/vector-index/use-vector-indexes.html)
186
292
## Data mapping
187
293
188
-
The Couchbase connector uses `System.Text.Json.JsonSerializer` for data mapping. Properties in the data model are serialized into a JSON object and mapped to Couchbase storage.
294
+
The Couchbase connector will use `System.Text.Json.JsonSerializer` to do mapping. Properties in the data model are serialized into a JSON object and stored as the document value in Couchbase.
295
+
296
+
Usage of the `JsonPropertyNameAttribute` is supported if a different storage name to the data model property name is required. It is also possible to use a custom `JsonSerializerOptions` instance with a customized property naming policy.
189
297
190
-
Use the `JsonPropertyName` attribute to map a property to a different name in Couchbase storage. Alternatively, you can configure `JsonSerializerOptions` for advanced customization.
Using the above custom `JsonSerializerOptions` which is using `CamelCase`, the following data model will be mapped to the below json.
315
+
316
+
Since a naming policy of snake case upper was chosen, here is an example of how this data type will be stored in Couchbase. Also note the use of `JsonPropertyNameAttribute` on the `Description` property to further customize the storage naming.
0 commit comments