-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
2,780 additions
and
686 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.
feb03ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
Added
PT.pprint
that does NOT depend on Markdown and splits text to adjust to the width of the output terminal.It is useful in notebooks to add newlines.
?RAGTools.Experimental.annotate_support
for more information) to highlight which parts of the generated answer come from the provided context versus the model's knowledge base. It's useful for transparency and debugging, especially in the context of AI-generated content. You can experience it if you run the output ofairag
through pretty printing (PT.pprint
).distance_longest_common_subsequence
to find the normalized distance between two strings (or a vector of strings). Always returns a number between 0-1, where 0 means the strings are identical and 1 means they are completely different. It's useful for comparing the similarity between the context provided to the model and the generated answer.airag
inPromptingTools.RAGTools.Experimental
. Each step now has a dedicated function and a type that can be customized to achieve arbitrary logic (via defining methods for your own types).airag
is split into two main steps:retrieve
andgenerate!
. You can use them separately or together. See?airag
for more information.Updated
split_by_length
text splitter torecursive_splitter
to make it easier to discover and understand its purpose.split_by_length
is still available as a deprecated alias.Fixed
LOCAL_SERVER
default value was not getting picked up. Now, it defaults tohttp://localhost:8000
if not set in the preferences, which is the address of the server started by Llama.jl.Commits
feb03ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/103298
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: