This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 8
Feat Text Embedding #175
Draft
H0llyW00dzZ
wants to merge
12
commits into
main
Choose a base branch
from
text-embedding
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Feat Text Embedding #175
Conversation
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
CodeQL analysis is complete for PR #175 |
- [+] feat(text-embedding.ts): add textEmbedding function to handle text embedding requests
- [+] chore(constant.ts): add EmbeddingPath constant for text embedding feature (work in progress)
- [+] feat(text-embedding.ts): add support for reading CSV file, parsing it, and getting embeddings - [+] chore(package.json): add @types/papaparse dependency - [+] chore(yarn.lock): update @types/papaparse to version 5.3.14
- [+] feat(text-embedding.ts): add support for specifying model in textEmbedding function - [+] feat(text-embedding.ts): refactor getTextEmbeddingsFromCSV to use textEmbedding function for getting embeddings
- [+] refactor(text-embedding.ts): update comment to clarify that embeddings are obtained using textEmbedding function
- [+] feat(text-embedding.ts): add support for getting provider from state - [+] fix(text-embedding.ts): change error messages to use localized strings - [+] fix(text-embedding.ts): change error messages to include provider information - [+] fix(text-embedding.ts): change error messages for CSV parsing and reading errors to use localized strings
- [+] chore(text-embedding.ts): chore code comment about Python being slow
- [+] fix(text-embedding.ts): improve error handling in getTextEmbeddingsFromCSV function - [+] fix(cn.ts): update FileReader error message to include file name - [+] fix(en.ts): update FileReader error message to include file name - [+] fix(id.ts): update FileReader error message to include file name
- [+] feat(openai.ts): add text embedding functionality and import necessary functions from text-embedding.ts
c22c737
to
dea22c1
Compare
- [+] chore(locales): add missing translation for error messages in cn, en, and id locales
- [+] chore(text-embedding.ts): rename file from textEmbedding.ts to text-embedding.ts - [+] docs(text-embedding.ts): add author information for CsvRow interface - [+] feat(text-embedding.ts): add function to embed input texts using specified model - [+] feat(text-embedding.ts): add function to read CSV file and retrieve text embeddings
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
Still WIP LOL