Skip to content

Added saving/loading of embeds and enabled ANSI text file uploads to vault#23

Open
andresdlp wants to merge 2 commits into
AllAboutAI-YT:mainfrom
andresdlp:main
Open

Added saving/loading of embeds and enabled ANSI text file uploads to vault#23
andresdlp wants to merge 2 commits into
AllAboutAI-YT:mainfrom
andresdlp:main

Conversation

@andresdlp

Copy link
Copy Markdown

Two very basic additions:

  • The embeding vectors can now be saved and loaded. This was implemented using torch.load() and torch.save(). If the user decides to save tensors, they will need to manually delete them if they want to generate embedings from vault again. This is to minimize required input during normal execution on the console.

  • Added a try-except statement on the upload file to allow for decoding of ANSI-encoding text files. I don't know of how many use cases this helps with but it is an absolute necessity for Spanish speakers.

Basic code to save and load embeddings to and from a .pt file. Allows users to launch model with embeddings without having to generate them every time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant