Skip to content

Commit de6d438

Browse files
authored
Merge pull request #167 from HolobiomicsLab/doc_update_2604
Refactor MetaboT documentation and update demo links Thanks for reviewing it @madina1203
2 parents 92dddc8 + 8e14c05 commit de6d438

12 files changed

Lines changed: 706 additions & 1197 deletions

File tree

README.md

Lines changed: 128 additions & 394 deletions
Large diffs are not rendered by default.

docs/api-reference/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Create a ChatLiteLLM instance based on the model id and configuration from [app/
3434
**Parameters:**
3535
- `config` (configparser.SectionProxy): The configuration section from params.ini that contains model settings:
3636

37-
- Required: "id" - model identifier (e.g., "gpt-4", "deepseek/...")
37+
- Required: "id" - model identifier (e.g., "gpt-4o", "deepseek/...")
3838
- Optional: "temperature", "max_retries", "base_url", "api_base"
3939

4040
**Returns:**
1.54 MB
Loading

docs/contributing.md

Lines changed: 51 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,84 @@
1-
# Contributing to 🧪 MetaboT 🍵 📝
1+
# Contributing
22

3-
We appreciate your interest in contributing to 🧪 MetaboT 🍵! Below are the guidelines to help you get started.
3+
Thank you for helping improve MetaboT. Contributions are welcome across code, prompts, evaluation, examples, and documentation.
44

5-
---
5+
## Development Workflow
66

7-
## How to Contribute 🤝
7+
1. Fork the repository.
8+
2. Clone your fork locally.
9+
3. Create a feature branch from `main`.
10+
4. Make and test your changes.
11+
5. Open a pull request back to `main`.
812

9-
### Fork the Repository
10-
11-
Fork the [MetaboT repository](https://github.com/holobiomicslab/MetaboT) to your GitHub account.
12-
13-
Clone your forked repository to your local machine:
14-
15-
- Fork the repository on GitHub.
16-
- Clone your fork and check out a new branch from the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev).
13+
Example:
1714

1815
```bash
1916
git clone https://github.com/<your-username>/MetaboT.git
2017
cd MetaboT
21-
git checkout -b dev
18+
git checkout -b my-feature
2219
```
2320

24-
### Create a Branch
25-
26-
Create a new branch for your feature or bugfix. For example, if you're working on a new feature, you might create a branch off the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev).
27-
28-
#### Development Process
29-
30-
**Making Changes**
31-
32-
- Make your changes ensuring all references to files (e.g., configuration files like [app/config/params.ini](https://github.com/holobiomicslab/MetaboT/blob/main/app/config/params.ini)) are updated as needed.
33-
- Commit your changes with clear, meaningful commit messages.
34-
- Push your feature branch and open a pull request against the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev).
35-
36-
37-
### Code Guidelines
38-
39-
- Follow the existing code style (Google DocString).
40-
- Write clear and concise commit messages.
41-
- Include comments and docstrings where necessary.
42-
43-
---
21+
## What We Appreciate Most
4422

45-
#### Code Standards
23+
- bug fixes and reliability improvements
24+
- clearer prompts and better agent coordination
25+
- documentation improvements
26+
- new examples and benchmarks
27+
- portability improvements for new knowledge graphs
4628

47-
- Follow **PEP8** for Python code. See the [Python Style Guide (PEP 8)](https://www.python.org/dev/peps/pep-0008/).
48-
- Include detailed documentation and inline comments where applicable.
29+
## Code Style
4930

50-
---
31+
- Follow standard Python style and keep changes readable.
32+
- Add comments where they clarify non-obvious logic.
33+
- Prefer small, focused pull requests over large mixed changes.
34+
- Update docs when behavior, configuration, or setup changes.
5135

52-
#### Tests
36+
## Tests and Validation
5337

54-
You can find our test suite in the [app/core/tests/](https://github.com/holobiomicslab/MetaboT/tree/main/app/core/tests) directory.
55-
56-
#### Documentation
57-
58-
Update the documentation to reflect your changes. This includes:
59-
60-
- Docstrings in the code.
61-
- Relevant Markdown files in the [docs/ directory](https://github.com/holobiomicslab/MetaboT/tree/main/docs), including:
62-
63-
- [API Reference](https://github.com/holobiomicslab/MetaboT/tree/main/docs/api-reference)
64-
- [User Guide](https://github.com/holobiomicslab/MetaboT/tree/main/docs/user-guide)
65-
- [Examples](https://github.com/holobiomicslab/MetaboT/tree/main/docs/examples)
66-
- [Getting Started](https://github.com/holobiomicslab/MetaboT/tree/main/docs/getting-started)
67-
68-
---
69-
70-
## Submitting Your Changes 📤
71-
72-
### Commit Your Changes
73-
74-
Commit your changes with a descriptive message:
75-
76-
```bash
77-
git add .
78-
git commit -m "Add new feature X"
79-
```
38+
Relevant code and tests live under:
8039

81-
### Push to Your Fork
40+
- `app/core/`
41+
- `app/tests/`
42+
- `docs/`
8243

83-
Push your changes to your forked repository:
44+
Before opening a pull request, run the checks that make sense for your change. At minimum, a lightweight smoke test is helpful:
8445

8546
```bash
86-
git push origin my-feature-branch
47+
python -m app.core.main -q 1
8748
```
8849

89-
### Open a Pull Request
50+
If you change prompts, routing, or SPARQL behavior, include a short note in the pull request explaining what you validated.
9051

91-
Open a pull request from your branch to the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev) of the original repository. Provide a clear description of your changes and any relevant information.
52+
## Documentation Changes
9253

93-
---
54+
Documentation is part of the product. If you change:
9455

95-
### Code Review
56+
- setup steps
57+
- environment variables
58+
- CLI behavior
59+
- agent roles
60+
- endpoint assumptions
9661

97-
Your pull request to the [`dev` branch](https://github.com/holobiomicslab/MetaboT/tree/dev) will be reviewed by an AI-agent and then by the maintainers. They may request changes or provide feedback. Please be responsive and address any comments or suggestions.
62+
please update the corresponding pages in `docs/` and, when relevant, `README.md`.
9863

99-
---
64+
## Pull Requests
10065

101-
## Community 👥
66+
When you open a pull request:
10267

103-
- You are welcome to use, reuse, and enrich 🧪 MetaboT 🍵.
104-
- Be respectful and considerate in your interactions.
105-
- Help others and share your knowledge.
106-
- Check our [examples](https://github.com/holobiomicslab/MetaboT/tree/main/docs/examples) for guidance.
68+
- explain the user-facing motivation
69+
- summarize the main changes
70+
- mention how you tested them
71+
- link related issues or discussions when available
10772

108-
---
73+
Clear PR descriptions make review much faster.
10974

110-
## Additional Resource 📚
75+
## Community
11176

112-
- [Writing Good Commit Messages](https://chris.beams.io/posts/git-commit/)
77+
Please be respectful, generous, and constructive in discussion and review. MetaboT sits at the intersection of AI, knowledge graphs, and metabolomics, so clear collaboration matters a lot.
11378

114-
---
79+
## Useful References
11580

116-
Thank you for contributing to 🧪 MetaboT 🍵! Your efforts help make this project better for everyone.
81+
- [Documentation Home](index.md)
82+
- [Installation](getting-started/installation.md)
83+
- [Quick Start](getting-started/quickstart.md)
84+
- [Examples](examples/basic-usage.md)

docs/examples/basic-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ from app.core.main import llm_creation
6767
from app.core.workflow.langraph_workflow import create_workflow
6868
# Initialize components
6969
endpoint_url = "https://enpkg.commons-lab.org/graphdb/repositories/ENPKG"
70-
models = llm_creation() # [llm_creation](https://github.com/nothiasl/MetaboT/blob/main/app/core/main.py)
70+
models = llm_creation() # See app/core/main.py
7171
# Create workflow
7272
workflow = create_workflow(
7373
models=models,
@@ -84,7 +84,7 @@ from app.core.workflow.langraph_workflow import process_workflow
8484

8585
# Process a custom query
8686
query = "What are the chemical structure ISDB annotations for Lovoa trichilioides?"
87-
process_workflow(workflow, query) # [process_workflow](https://github.com/nothiasl/MetaboT/blob/main/app/core/workflow/langraph_workflow.py)
87+
process_workflow(workflow, query) # See app/core/workflow/langraph_workflow.py
8888
```
8989

9090
### Batch Processing

0 commit comments

Comments
 (0)