Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcominerva/searchgpt
A sample that shows how to integrate ChatGPT with your own data that comes from Azure Cognitive Search
https://github.com/marcominerva/searchgpt
asp-net-core azure azure-cognitive-search azure-opena azure-openai c-sharp chatgpt hacktoberfest minimal-api openai openai-api razor-pages visual-studio
Last synced: 4 months ago
JSON representation
A sample that shows how to integrate ChatGPT with your own data that comes from Azure Cognitive Search
- Host: GitHub
- URL: https://github.com/marcominerva/searchgpt
- Owner: marcominerva
- License: mit
- Created: 2023-06-30T15:04:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T10:46:55.000Z (about 1 year ago)
- Last Synced: 2024-05-29T17:10:15.173Z (8 months ago)
- Topics: asp-net-core, azure, azure-cognitive-search, azure-opena, azure-openai, c-sharp, chatgpt, hacktoberfest, minimal-api, openai, openai-api, razor-pages, visual-studio
- Language: JavaScript
- Homepage:
- Size: 4.33 MB
- Stars: 11
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SearchGPT
A sample that shows how to integrate ChatGPT with your own data that comes from Azure Cognitive Search.
You need to set the required values in the [appsettings.json](https://github.com/marcominerva/SearchGPT/blob/master/src/SearchGpt/appsettings.json) file:
"ChatGPT": {
"Provider": "OpenAI", // Optional. Allowed values: OpenAI (default) or Azure
"ApiKey": "", // Required
"Organization": "", // Optional, used only by OpenAI
"ResourceName": "", // Required when using Azure OpenAI Service
"AuthenticationType": "ApiKey", // Optional, used only by Azure OpenAI Service. Allowed values: ApiKey (default) or ActiveDirectory
"DefaultModel": "my-model" // Required
},
"CognitiveSearchSettings": {
"ServiceName": "",
"ApiKey": "",
"IndexName": ""
}> **Note**
The search index must contain a field named `content` that is searchable and retrievable. If you want to use different fields, you need to change the code in the [ChatService.cs](https://github.com/marcominerva/SearchGPT/blob/master/src/SearchGpt.BusinessLayer/Services/ChatService.cs) class.For more information about the structure of the project, refer to [ChatGptPlayground documentation](https://github.com/marcominerva/ChatGptPlayground).