-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci skip] DOC add section in user guide 147df0d
- Loading branch information
Showing
34 changed files
with
1,987 additions
and
212 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 31829c0d0fa608d27ff762e0d5e45a77 | ||
config: 08df6d8976882d5d196038fc120712f9 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
.. title:: User guide | ||
|
||
.. _user_guide: | ||
|
||
========== | ||
User Guide | ||
========== | ||
|
||
Some info regarding RAG | ||
|
||
Implementation details | ||
====================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
text_scraping | ||
information_retrieval | ||
large_language_model |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. _large_language_model: | ||
|
||
========= | ||
Prompting | ||
========= | ||
|
||
Prompting for API documentation | ||
=============================== | ||
|
||
:class:`~ragger_duck.prompt.BasicPromptingStrategy` implements a prompting | ||
strategy to answer documentation questions. We get context by reranking the | ||
search from a lexical and semantical retrievers. Once the context is retrieved, | ||
we request a Large Language Model (LLM) to answer the question. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. _text_scraping: | ||
|
||
============= | ||
Text Scraping | ||
============= | ||
|
||
The scraping module provides some simple estimator that extract meaningful | ||
documentation from the documentation website. | ||
|
||
API documentation | ||
================= | ||
|
||
:class:`~ragger_duck.scraping.APINumPyDocExtractor` is a more advanced scraper | ||
that uses `numpydoc` and it scraper to extract the documentation. Indeed, the | ||
`numpydoc` scraper will parse the different sections and we build meaningful | ||
chunks of documentation from the parsed sections. While, we don't control for | ||
the chunk size, the chunks are build such that they contain information only | ||
of a specific parameter and always refer to the class or function. We hope that | ||
scraping in such way can remove ambiguity that could exist when building chunks | ||
without any control. | ||
|
||
User Guide documentation | ||
======================== | ||
|
||
:class:`~ragger_duck.scraping.UserGuideDocExtractor` is a scraper that extract | ||
documentation from the user guide. It is a simple scraper that extract | ||
text information from the webpage. Additionally, this text can be chunked. |
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
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
Binary file not shown.
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
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.