-
-
Notifications
You must be signed in to change notification settings - Fork 381
Knowledgebase embeddings #2158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
GTimothee
wants to merge
15
commits into
Giskard-AI:main
Choose a base branch
from
GTimothee:knowledgebase_embeddings
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.
+435
−15
Open
Knowledgebase embeddings #2158
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
60e4f9e
add local save and load methods and their huggingfacehub equivalent
GTimothee 5f7fd4d
Merge branch 'Giskard-AI:main' into knowledgebase_embeddings
GTimothee 30b65fc
linters
GTimothee 8ada0eb
Merge branch 'knowledgebase_embeddings' of https://github.com/GTimoth…
GTimothee 62c4ba1
fix little bug retrieving embedding model name for config
GTimothee c6e074a
unit tests
GTimothee 2d36958
fix test_knowledge_base_save_and_load
GTimothee a1e6ffc
fix remaining tests
GTimothee 2adfa69
add test dependency to pyproject
GTimothee cc7d034
Merge branch 'knowledgebase_embeddings' of https://github.com/GTimoth…
GTimothee 2521169
Update giskard/rag/knowledge_base.py
GTimothee b63fe08
Update giskard/rag/knowledge_base.py
GTimothee 1db87e3
modifications following comments in PR
GTimothee b13f876
linters
GTimothee 6924fc3
merged
GTimothee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| --- | ||
| tags: | ||
| - giskard | ||
| - knowledge-base | ||
| - information-retrieval | ||
|
|
||
| task_categories: | ||
| - text-generation | ||
| - text2text-generation | ||
| - question-answering | ||
| - text-retrieval | ||
| --- | ||
|
|
||
| # Dataset Card for {repo_id} | ||
| > This repository was created using the [giskard](https://github.com/Giskard-AI/giskard) library, an open-source Python framework designed to evaluate and test AI systems. | ||
|
|
||
| This dataset comprises a giskard's `KnowledgeBase` containing {num_items} documents. If embeddings were generated before the saving process, they are included and will be automatically loaded into a vector store when required. | ||
|
|
||
| ## Usage | ||
|
|
||
| You can load this knowledge base using the following code: | ||
|
|
||
| ```python | ||
| from giskard.rag import KnowledgeBase | ||
| kb = KnowledgeBase.load_from_hf_hub("{repo_id}") | ||
| ``` | ||
|
|
||
| ## Configuration | ||
|
|
||
| The configuration details for this Knowledge Base (can also be found in the `config.json` file): | ||
|
|
||
| ```bash | ||
| {config} | ||
| ``` | ||
|
|
||
| --- | ||
|
|
||
| <h2 style="text-align: center;"> | ||
| <span style="display: inline-flex; align-items: center;"> | ||
| Built with | ||
| <a href="https://giskard.ai" target="_blank" style="display: inline-flex;"> | ||
| <img src="https://cdn.prod.website-files.com/601d6f7d0b9c984f07bf10bc/62983fa8ef716259c397a57d_logo.svg" | ||
| alt="Giskard Logo" | ||
| width="100"> | ||
| </a> | ||
| </span> | ||
| </h2> | ||
|
|
||
| <div style="text-align: center;"> | ||
| <a href="https://github.com/Giskard-AI/giskard" target="_blank" style="display: inline-flex;"> Giskard </a> helps identify performance, bias, and security issues in AI applications, supporting both LLM-based systems like RAG agents and traditional machine learning models for tabular data. | ||
| </div> |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
should we also pass kwargs for the push to hub/upload file etc?