Update documentations (#23)
This commit is contained in:
parent
5ce6bac03d
commit
4efe9c02a8
22
README.md
22
README.md
|
@ -25,9 +25,7 @@ This repository is under active development. Feedback, issues, and PRs are highl
|
||||||
appreciated. Your input is valuable as it helps us persuade our business guys to support
|
appreciated. Your input is valuable as it helps us persuade our business guys to support
|
||||||
open source.
|
open source.
|
||||||
|
|
||||||
## Installation
|
## Setting up
|
||||||
|
|
||||||
### Manual installation
|
|
||||||
|
|
||||||
- Clone the repo
|
- Clone the repo
|
||||||
|
|
||||||
|
@ -68,21 +66,3 @@ open source.
|
||||||
```shell
|
```shell
|
||||||
pytest tests
|
pytest tests
|
||||||
```
|
```
|
||||||
|
|
||||||
### From installation scripts
|
|
||||||
|
|
||||||
1. Clone the repository.
|
|
||||||
2. Navigate to the `scripts` folder and start an installer that matches your OS:
|
|
||||||
- Linux: `run_linux.sh`
|
|
||||||
- Windows: `run_windows.bat`
|
|
||||||
- macOS: `run_macos.sh`
|
|
||||||
3. After the installation, the installer will ask to launch the ktem's UI,answer to continue.
|
|
||||||
4. If launched, the application will be available at `http://localhost:7860/`.
|
|
||||||
5. The conda environment is located in the `install_dir/env` folder.
|
|
||||||
|
|
||||||
Here is the setup and update strategy:
|
|
||||||
|
|
||||||
- **Run the `run_*` script**: This setup environment, including downloading Miniconda (in case Conda is not available in your machine) and installing necessary dependencies in `install_dir` folder.
|
|
||||||
- **Launch the UI**: To launch the ktem's UI after initial setup or any changes, simply run `run_*` script again.
|
|
||||||
- **Reinstall dependencies**: Simply delete the `install_dir/env` folder and run `run_*`
|
|
||||||
script again. The script will recreate the folder with fresh dependencies.
|
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
like Langchain, llama-index,... when possible) commonly used components in
|
like Langchain, llama-index,... when possible) commonly used components in
|
||||||
kotaemon use cases. Some of these components are: LLM, vector store,
|
kotaemon use cases. Some of these components are: LLM, vector store,
|
||||||
document store, retriever... For a detailed list and description of these
|
document store, retriever... For a detailed list and description of these
|
||||||
components, please refer to the [API Reference](/reference/nav/) section.
|
components, please refer to the [API Reference](../reference/Summary.md) section.
|
||||||
- List of utilities: `kotaemon` provides utilities and tools that are
|
- List of utilities: `kotaemon` provides utilities and tools that are
|
||||||
usually needed in client project. For example, it provides a prompt
|
usually needed in client project. For example, it provides a prompt
|
||||||
engineering UI for AI developers in a project to quickly create a prompt
|
engineering UI for AI developers in a project to quickly create a prompt
|
||||||
engineering tool for DMs and QALs. It also provides a command to quickly spin
|
engineering tool for DMs and QALs. It also provides a command to quickly spin
|
||||||
up a project code base. For a full list and description of these utilities,
|
up a project code base. For a full list and description of these utilities,
|
||||||
please refer to the [Utilities](/development/utilities) section.
|
please refer to the [Utilities](utilities.md) section.
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
mindmap
|
mindmap
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 42 KiB |
Binary file not shown.
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 54 KiB |
Binary file not shown.
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 63 KiB |
|
@ -1,6 +1,8 @@
|
||||||
# Getting Started with Kotaemon
|
# Getting Started with Kotaemon
|
||||||
|
|
||||||
This page is intended for end users who want to use the `kotaemon` tool for Question Answering on local documents.
|
This page is intended for end users who want to use the `kotaemon` tool for Question
|
||||||
|
Answering on local documents. If you are a developer who wants contribute to the
|
||||||
|
project, please visit the [development](development/index.md) page.
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
|
@ -31,9 +33,9 @@ A browser window will be opened and greet you with this screen:
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
For how to use the application, see [Usage](/usage). This page will also be available to
|
For how to use the application, see [Usage](usage.md). This page will also be available to
|
||||||
you within the application.
|
you within the application.
|
||||||
|
|
||||||
## Feedback
|
## Feedback
|
||||||
|
|
||||||
Feel free to create a bug report or a feature request or join a discussion at https://github.com/Cinnamon/kotaemon/issues.
|
Feel free to create a bug report or a feature request on our [repo](https://github.com/Cinnamon/kotaemon/issues).
|
||||||
|
|
|
@ -68,7 +68,7 @@ def generate_docs_for_src_code(
|
||||||
full_doc_path, Path("..") / path.relative_to(code_dir.parent)
|
full_doc_path, Path("..") / path.relative_to(code_dir.parent)
|
||||||
)
|
)
|
||||||
|
|
||||||
with mkdocs_gen_files.open(f"{target_doc_folder}/NAV.md", "w") as nav_file:
|
with mkdocs_gen_files.open(f"{target_doc_folder}/Summary.md", "w") as nav_file:
|
||||||
nav_file.writelines(nav.build_literate_nav())
|
nav_file.writelines(nav.build_literate_nav())
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,18 +14,19 @@
|
||||||
To add a model:
|
To add a model:
|
||||||
|
|
||||||
1. Navigate to the `Resources` tab.
|
1. Navigate to the `Resources` tab.
|
||||||
2. Select `LLM Management`.
|
2. Select the `LLMs` sub-tab.
|
||||||
3. Select `Add`.
|
3. Select the `Add` sub-tab.
|
||||||
4. Config the model to add:
|
4. Config the model to add:
|
||||||
- Give it a name.
|
- Give it a name.
|
||||||
- Pick a vendor/provider (e.g. `ChatOpenAI`).
|
- Pick a vendor/provider (e.g. `ChatOpenAI`).
|
||||||
- Provide the specifications.
|
- Provide the specifications.
|
||||||
- Optionally, set the model as default.
|
- (Optional) Set the model as default.
|
||||||
5. Click `Add LLM`.
|
5. Click `Add` to add the model.
|
||||||
|
6. Select `Embedding Models` sub-tab and repeat the step 3 to 5 to add an embedding model.
|
||||||
|
|
||||||
<details close>
|
<details markdown>
|
||||||
|
|
||||||
<summary>Configures model via the .env file</summary>
|
<summary>(Optional) Configure model via the .env file</summary>
|
||||||
|
|
||||||
Alternatively, you can configure the models via the `.env` file with the information needed to connect to the LLMs. This file is located in
|
Alternatively, you can configure the models via the `.env` file with the information needed to connect to the LLMs. This file is located in
|
||||||
the folder of the application. If you don't see it, you can create one.
|
the folder of the application. If you don't see it, you can create one.
|
||||||
|
@ -104,7 +105,7 @@ Here is how to get the full path of your model file:
|
||||||
- On Windows 11: right click the file and select `Copy as Path`.
|
- On Windows 11: right click the file and select `Copy as Path`.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## Upload your documents
|
## 2. Upload your documents
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -118,7 +119,7 @@ Navigate to the `File Index` tab and you will see 2 sections:
|
||||||
2. File list:
|
2. File list:
|
||||||
- This section shows the list of files that have been uploaded to the application and allows users to delete them.
|
- This section shows the list of files that have been uploaded to the application and allows users to delete them.
|
||||||
|
|
||||||
## Chat with your documents
|
## 3. Chat with your documents
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
22
mkdocs.yml
22
mkdocs.yml
|
@ -7,8 +7,15 @@ nav:
|
||||||
- Getting Started:
|
- Getting Started:
|
||||||
- Quick Start: index.md
|
- Quick Start: index.md
|
||||||
- Basic Usage: usage.md
|
- Basic Usage: usage.md
|
||||||
- Application:
|
# - Application:
|
||||||
- Features: pages/app/features.md
|
# - Customize UI: pages/app/customize-ui.md
|
||||||
|
# - Functional description: pages/app/functional-description.md
|
||||||
|
- Development:
|
||||||
|
- development/index.md
|
||||||
|
- Contributing: development/contributing.md
|
||||||
|
# - Data & Data Structure Components: development/data-components.md
|
||||||
|
# - Features: pages/app/features.md
|
||||||
|
- Components:
|
||||||
- Index:
|
- Index:
|
||||||
- File index: pages/app/index/file.md
|
- File index: pages/app/index/file.md
|
||||||
- Settings:
|
- Settings:
|
||||||
|
@ -17,19 +24,14 @@ nav:
|
||||||
- Extension:
|
- Extension:
|
||||||
- User management: pages/app/ext/user-management.md
|
- User management: pages/app/ext/user-management.md
|
||||||
- Customize flow logic: pages/app/customize-flows.md
|
- Customize flow logic: pages/app/customize-flows.md
|
||||||
- Customize UI: pages/app/customize-ui.md
|
|
||||||
- Functional description: pages/app/functional-description.md
|
|
||||||
- Development:
|
|
||||||
- development/index.md
|
|
||||||
- Contributing: development/contributing.md
|
|
||||||
- Data & Data Structure Components: development/data-components.md
|
|
||||||
- Creating a Component: development/create-a-component.md
|
- Creating a Component: development/create-a-component.md
|
||||||
- Utilities: development/utilities.md
|
|
||||||
# generated using gen-files + literate-nav
|
# generated using gen-files + literate-nav
|
||||||
- API Reference: reference/
|
- API Reference: reference/
|
||||||
|
- Issue Tracker: "https://github.com/Cinnamon/kotaemon/issues"
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- admonition
|
- admonition
|
||||||
|
- md_in_html
|
||||||
- pymdownx.highlight:
|
- pymdownx.highlight:
|
||||||
use_pygments: true
|
use_pygments: true
|
||||||
anchor_linenums: true
|
anchor_linenums: true
|
||||||
|
@ -58,7 +60,7 @@ plugins:
|
||||||
scripts:
|
scripts:
|
||||||
- docs/scripts/generate_reference_docs.py
|
- docs/scripts/generate_reference_docs.py
|
||||||
- literate-nav:
|
- literate-nav:
|
||||||
nav_file: NAV.md
|
nav_file: Summary.md
|
||||||
- mkdocstrings:
|
- mkdocstrings:
|
||||||
handlers:
|
handlers:
|
||||||
python:
|
python:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user