Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 11, 2024
1 parent 5ce6bac commit 6082a06
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 50 deletions.
22 changes: 1 addition & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
open source.

## Installation

### Manual installation
## Setting up

- Clone the repo

Expand Down Expand Up @@ -68,21 +66,3 @@ open source.
```shell
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.
4 changes: 2 additions & 2 deletions docs/development/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
like Langchain, llama-index,... when possible) commonly used components in
kotaemon use cases. Some of these components are: LLM, vector store,
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
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 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,
please refer to the [Utilities](/development/utilities) section.
please refer to the [Utilities](utilities.md) section.

```mermaid
mindmap
Expand Down
Binary file modified docs/images/chat-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/file-index-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/resources-tab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# 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

Expand Down Expand Up @@ -31,9 +33,9 @@ A browser window will be opened and greet you with this screen:

## 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.

## 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).
2 changes: 1 addition & 1 deletion docs/scripts/generate_reference_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def generate_docs_for_src_code(
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())


Expand Down
17 changes: 9 additions & 8 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@
To add a model:

1. Navigate to the `Resources` tab.
2. Select `LLM Management`.
3. Select `Add`.
2. Select the `LLMs` sub-tab.
3. Select the `Add` sub-tab.
4. Config the model to add:
- Give it a name.
- Pick a vendor/provider (e.g. `ChatOpenAI`).
- Provide the specifications.
- Optionally, set the model as default.
5. Click `Add LLM`.
- (Optional) Set the model as default.
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
the folder of the application. If you don't see it, you can create one.
Expand Down Expand Up @@ -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`.
</details>

## Upload your documents
## 2. Upload your documents

![file index tab](https://raw.githubusercontent.com/Cinnamon/kotaemon/main/docs/images/file-index-tab.png)

Expand All @@ -118,7 +119,7 @@ Navigate to the `File Index` tab and you will see 2 sections:
2. File list:
- 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

![chat tab](https://raw.githubusercontent.com/Cinnamon/kotaemon/main/docs/images/chat-tab.png)

Expand Down
32 changes: 17 additions & 15 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,31 @@ nav:
- Getting Started:
- Quick Start: index.md
- Basic Usage: usage.md
- Application:
- Features: pages/app/features.md
- Index:
- File index: pages/app/index/file.md
- Settings:
- pages/app/settings/overview.md
- pages/app/settings/user-settings.md
- Extension:
- User management: pages/app/ext/user-management.md
- Customize flow logic: pages/app/customize-flows.md
- Customize UI: pages/app/customize-ui.md
- Functional description: pages/app/functional-description.md
# - Application:
# - 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
# - Data & Data Structure Components: development/data-components.md
# - Features: pages/app/features.md
- Components:
- Index:
- File index: pages/app/index/file.md
- Settings:
- pages/app/settings/overview.md
- pages/app/settings/user-settings.md
- Extension:
- User management: pages/app/ext/user-management.md
- Customize flow logic: pages/app/customize-flows.md
- Creating a Component: development/create-a-component.md
- Utilities: development/utilities.md
# generated using gen-files + literate-nav
- API Reference: reference/
- Issue Tracker: "https://github.com/Cinnamon/kotaemon/issues"

markdown_extensions:
- admonition
- md_in_html
- pymdownx.highlight:
use_pygments: true
anchor_linenums: true
Expand Down Expand Up @@ -58,7 +60,7 @@ plugins:
scripts:
- docs/scripts/generate_reference_docs.py
- literate-nav:
nav_file: NAV.md
nav_file: Summary.md
- mkdocstrings:
handlers:
python:
Expand Down

0 comments on commit 6082a06

Please sign in to comment.