Commit Graph
6 Commits
Author SHA1 Message Date
Adrian Bonar 75f2f9d519 Update samples to use 'chat' completion models rather than text completion models (#1001)
### Motivation and Context
Chat completion models are requested and can be significantly less
expensive.

### Description
- Update KernelHttpServer to use chat completion models
- Added notes to sample READMEs
2023-05-15 18:49:04 +00:00
Lee Miller 5b1ed2f192 Rename TextChunker from SemanticTextPartitioner (#683)
### Motivation and Context
To match changes in #450 

### Description
This pull request renames the SemanticTextPartitioner class to
TextChunker, and updates all references to this class in the code and
documentation. The TextChunker class is responsible for splitting text
into smaller chunks based on tokens and paragraphs, which is useful for
processing large texts or code files. The new name TextChunker reflects
the functionality of the class more clearly and avoids confusion with
the SemanticPartitioner class, which is a different concept that splits
text into semantic segments based on embeddings.

Details:
- Rename SemanticTextPartitioner.cs to TextChunker.cs and update the
class name and namespace accordingly. The TextChunker class is now in
the Text namespace, which is more consistent with its purpose and the
other classes in the namespace.
- Update all references to SemanticTextPartitioner in the code and
documentation to use TextChunker instead. This includes the
ConversationSummarySkill and the DocumentImportController classes, which
use the TextChunker class to split text into sentences and paragraphs
for summarization and import.
- Update the README.md file for the GitHub Repo Q&A Bot sample to
explain how the TextChunker class works with memory and embeddings.
- Make some minor formatting changes to the TextChunker class, such as
adding line breaks and spaces for readability, and removing an unused
using directive.
2023-04-26 23:43:17 +00:00
Aman Sachan 3964400930 update readmes to talk about the .env file (#382)
### Description
Update readmes of a few sample apps to talk about using the .env file
and setting the application client ID in it.
2023-04-11 11:23:03 -07:00
Aman Sachan 9ca952fb7f added *.development.config and *.development.json to gitignore (#350)
### Description
Allows users to store secrets and other sensitive info locally and not checking it in by mistake
2023-04-07 19:38:04 +00:00
Tao Chen 33568a8a3a Minor non-functional updates to sample 4 (#138)
It is not obvious to users that Sample 4 currently only processes
markdown files.

1. Add a paragraph in the sample 4 readme that points out the app only
processes markdown files.
2. Add a tooltip in the repo selection page that informs users only the
files of the specified type will be processed.
2023-03-23 13:15:08 -07:00
b89c0faf6c Sample 4: Using memory and embeddings with GitHub (#94) (#96)
### Motivation and Context
This sample continues in the spirit of prior samples in the samples/apps
folder with a goal of teaching developers how the concepts of memory and
embeddings can be integrated.

### Description
This sample includes a frontend app that allows the developer to enter
the address of a publicly available Github repository, which is
downloaded to the temp directory of the machine hosting the
KernelHttpService sample application (can be the same machine).

Once downloaded the developer is able to have a conversation with the
repository and see the impact of the relevance slider on the responses.

---------

Co-authored-by: Craig Presti <[email protected]>
Co-authored-by: teresaqhoang <[email protected]>
Co-authored-by: markwallace-microsoft <[email protected]>
Co-authored-by: Tao Chen <[email protected]>
Co-authored-by: Mark Wallace <[email protected]>
Co-authored-by: Devis Lucato <[email protected]>
Co-authored-by: Devis Lucato <[email protected]>
Co-authored-by: Adrian Bonar <[email protected]>
2023-03-21 19:28:27 -07:00