forked from Anindyadeep/pandas-ai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: use google style for the docstring (sinaptik-ai#185)
* Following Features added 1. Re-Factor the docstring using Google Style 2. Updated docs for `Prompts` Module 3. Updated docs for `pai` Module 4. Feature merged with release `0.2.16` * Added Placeholder for Notebooks and added a Notebook * Pylint Fixing * Pylint Fixing * Fixed Type in `constant.py` * Pylint Fixing of `too-few-public-methods` and `duplicate-code` in `prompts` Module. * Pylint Fixing of `too-few-public-methods` and `duplicate-code` in `prompts` Module for Multiple dataframes. * Pylint Fixing of `super-init-not-called` * -- Tests Passed -- Pylint Passed * Added API docs for Multiple Dataframes Prompts. Also, update the Version of `mkdocs`. * Added API docs for Multiple Dataframes Prompts. Also, update the Version of `mkdocs`. * Moved mkdocs dependency to `docs.dependencies` --------- Co-authored-by: Gabriele Venturi <[email protected]>
- Loading branch information
Showing
31 changed files
with
768 additions
and
181 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 +1,18 @@ | ||
## Helpers | ||
This module includes methods classified as helpers. | ||
|
||
### Anonymizer | ||
|
||
A collection of methods to help handle sensitive information | ||
|
||
::: pandasai.helpers.anonymizer | ||
options: | ||
show_root_heading: true | ||
|
||
### Jupyter Notebook | ||
|
||
Helper functions to handle Jupyter Notebook execution feature | ||
|
||
::: pandasai.helpers.notebook | ||
options: | ||
show_root_heading: true |
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,31 +1,57 @@ | ||
## LLMS | ||
## LLMs | ||
This document outlines the LLMs API wrappers included in the `pandasai`. | ||
|
||
### Base | ||
|
||
This is a base class to implement any LLM to be used with `pandasai` framework. | ||
|
||
::: pandasai.llm.base | ||
options: | ||
show_root_heading: true | ||
|
||
::: pandasai.llm.fake | ||
options: | ||
show_root_heading: true | ||
### OpenAI | ||
|
||
OpenAI API wrapper extended through BaseOpenAI class. | ||
|
||
::: pandasai.llm.openai | ||
options: | ||
show_root_heading: true | ||
|
||
|
||
### OpenAssistant | ||
|
||
OpenAssistant wrapper extended through Base HuggingFace Class | ||
|
||
::: pandasai.llm.open_assistant | ||
options: | ||
show_root_heading: true | ||
|
||
### Starcoder | ||
|
||
Starcoder wrapper extended through Base HuggingFace Class | ||
|
||
::: pandasai.llm.starcoder | ||
options: | ||
show_root_heading: true | ||
|
||
### Azure OpenAI | ||
|
||
OpenAI API through Azure Platform wrapper | ||
|
||
::: pandasai.llm.azure_openai | ||
options: | ||
show_root_heading: true | ||
|
||
### GooglePalm | ||
|
||
GooglePalm class extended through BaseGoogle Class | ||
|
||
::: pandasai.llm.google_palm | ||
options: | ||
show_root_heading: true | ||
|
||
### Fake | ||
|
||
A test fake class | ||
::: pandasai.llm.fake | ||
options: | ||
show_root_heading: true |
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,9 @@ | ||
## PAI: A CLI tool | ||
|
||
### __main__ | ||
|
||
A base implementation | ||
|
||
::: pai.__main__ | ||
options: | ||
show_root_heading: true |
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,25 @@ | ||
## PANDASAI | ||
|
||
This Section of API covers the BaseModule Implementation along with some Package Constants and Exceptions. | ||
|
||
|
||
### Main | ||
|
||
The `init` of pandasai module contains the a high level wrapper to run the package. | ||
::: pandasai | ||
options: | ||
show_root_heading: true | ||
|
||
### Constants | ||
Some of the package level constants are defined here. | ||
::: pandasai.constants | ||
options: | ||
show_root_heading: true | ||
|
||
### Exception Handling | ||
|
||
The pandasai specific Exception handling mechanism defined here. | ||
|
||
::: pandasai.exceptions | ||
options: | ||
show_root_heading: true |
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,51 @@ | ||
## Prompts | ||
This module includes some methods on optimally handling prompts when interacting with LLMs. | ||
|
||
### Base Prompt | ||
|
||
A base prompt | ||
|
||
::: pandasai.prompts.base | ||
options: | ||
show_root_heading: true | ||
|
||
|
||
### Generate Python Code | ||
|
||
A standard prompt is designed to be used when querying the LLMs to generate Python Code. | ||
|
||
::: pandasai.prompts.generate_python_code | ||
options: | ||
show_root_heading: true | ||
|
||
### Generate Python Code On Error | ||
|
||
A prompt to generate Python Code on Error | ||
|
||
::: pandasai.prompts.correct_error_prompt | ||
options: | ||
show_root_heading: true | ||
|
||
### Generate Response | ||
|
||
A prompt to generate Conversational Response | ||
|
||
::: pandasai.prompts.generate_response | ||
options: | ||
show_root_heading: true | ||
|
||
### Generate Python Code Multiple DataFrames | ||
|
||
A standard prompt is designed to be used when querying the LLMs to generate Python Code. | ||
|
||
::: pandasai.prompts.multiple_dataframes | ||
options: | ||
show_root_heading: true | ||
|
||
### Generate Python Code On Error Multiple DataFrames | ||
|
||
A prompt to generate Python Code on Error | ||
|
||
::: pandasai.prompts.correct_multiples_prompt | ||
options: | ||
show_root_heading: true |
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.