Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit afad25a

Browse files
authored
Merge branch 'main' into prompt-engine-api
2 parents c315147 + 7235189 commit afad25a

38 files changed

+4734
-332
lines changed

Diff for: .github/workflows/python-publish.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Act on release created
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-publish:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
19+
- name: Install Poetry and version plugin
20+
run: |
21+
ls ./assets/scripts/gh-actions/
22+
chmod +x ./assets/scripts/gh-actions/setup-poetry.sh
23+
./assets/scripts/gh-actions/setup-poetry.sh
24+
shell: bash
25+
26+
- name: Build and publish
27+
env:
28+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
29+
run: |
30+
poetry config pypi-token.pypi $PYPI_TOKEN
31+
poetry build
32+
poetry publish

Diff for: CONTRIBUTING.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Contributing
2+
3+
Contributions are welcome, and they are greatly appreciated! Every little bit
4+
helps, and credit will always be given.
5+
6+
You can contribute in many ways:
7+
8+
## Types of Contributions
9+
10+
**Report Bugs**
11+
12+
Report bugs at [https://github.com/aiplanethub/genai-stack/issues](https://github.com/aiplanethub/genai-stack/issues).
13+
14+
If you are reporting a bug, please include:
15+
16+
- Your operating system name and version.
17+
- Any details about your local setup that might be helpful in troubleshooting.
18+
- Detailed steps to reproduce the bug.
19+
20+
**Fix Bugs**
21+
22+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
23+
wanted" is open to whoever wants to implement it.
24+
25+
**Implement Features**
26+
27+
Look through the GitHub issues for features. Anything tagged with "enhancement"
28+
and "help wanted" is open to whoever wants to implement it.
29+
30+
**Write Documentation**
31+
32+
GenAI Stack could always use more documentation, whether as part of the
33+
official GenAI Stack docs, in docstrings, or even on the web in blog posts,
34+
articles, and such.
35+
36+
**Submit Feedback**
37+
38+
The best way to send feedback is to file an issue at [https://github.com/aiplanethub/genai-stack/issues](https://github.com/aiplanethub/genai-stack/issues).
39+
40+
If you are proposing a feature:
41+
42+
- Explain in detail how it would work.
43+
- Keep the scope as narrow as possible, to make it easier to implement.
44+
- Remember that this is a volunteer-driven project, and that contributions
45+
are welcome :)
46+
47+
## Get Started!
48+
49+
Ready to contribute? Here's how to set up `genai_stack` for local development.
50+
51+
1. Fork the `genai_stack` repo on GitHub.
52+
2. Clone your fork locally
53+
54+
```bash
55+
git clone [email protected]:your_name_here/genai_stack.git
56+
```
57+
58+
3. Install Poetry for managing dependencies. If you haven't installed Poetry yet, follow the instructions at [https://python-poetry.org/docs/](https://python-poetry.org/docs/) to get it set up.
59+
60+
4. Install your local copy into a virtualenv using Poetry::
61+
62+
```bash
63+
cd genai_stack/
64+
poetry install
65+
```
66+
67+
5. Create a branch for local development
68+
69+
```bash
70+
git checkout -b <name-of-your-bugfix-or-feature>
71+
```
72+
73+
Now you can make your changes locally.
74+
75+
6. When you need to add or update a dependency, use Poetry. For example, to add a new dependency::
76+
77+
```bash
78+
poetry add <package-name>
79+
```
80+
81+
Or to update an existing dependency::
82+
83+
```bash
84+
poetry update <package-name>
85+
```
86+
87+
7. When you're done making changes, check that your changes pass all the tests tests, including testing other Python versions.
88+
89+
8. Commit your changes and push your branch to GitHub
90+
91+
```bash
92+
git add .
93+
git commit -m "Your detailed description of your changes."
94+
git push origin name-of-your-bugfix-or-feature
95+
```
96+
97+
9. Submit a pull request through the GitHub website.
98+
99+
## Pull Request Guidelines
100+
101+
Before you submit a pull request, check that it meets these guidelines:
102+
103+
1. The pull request should include tests.
104+
105+
2. If the pull request adds functionality, the docs should be updated.
106+
107+
3. The pull request should work for Python 3.8, 3.9, 3.10 and make sure that the tests pass for all supported Python versions in different platforms like Linux, Mac, Windows.

Diff for: CONTRIBUTING.rst

-128
This file was deleted.

Diff for: README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
<a href="https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10-3776AB.svg?style=flat&logo=python&logoColor=white"><img src="https://img.shields.io/badge/Python-3.8%20%7C%203.9%20%7C%203.10-3776AB.svg?style=flat&logo=python&logoColor=white" alt="Python Versions"></a>
66
<a href="https://discord.gg/4aWV7He2QU"><img src="https://dcbadge.vercel.app/api/server/4aWV7He2QU?style=flat" alt="Discord" /></a>
7-
<a href="https://twitter.com/aiplanet4all"><img src="https://img.shields.io/twitter/follow/aiplanet4all" alt="Twitter" /></a>
8-
<a href="https://colab.research.google.com/drive/1R-vnA0X5gTo_era8YChOvhFMVTVu7K-8?usp=sharing"><img src="https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667" alt="Colab" /></a>
7+
<a href="https://twitter.com/aiplanethub"><img src="https://img.shields.io/twitter/follow/aiplanethub" alt="Twitter" /></a>
8+
<a href="https://colab.research.google.com/drive/1y6_0MoNWjS9wugv0askP1Jb7zrY_sQT-?usp=sharing"><img src="https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667" alt="Colab" /></a>
99

1010
<p>GenAI Stack is an end-to-end framework for the integration of LLMs into any application. It can be deployed on your own infrastructure, ensuring data privacy. It comes with everything you need for data extraction, vector stores, to reliable model deployment.</p>
1111
<i><a href="https://discord.gg/4aWV7He2QU">👉 Join our Discord community!</a></i>
@@ -15,10 +15,16 @@
1515

1616
Try out a quick demo of GenAI Stack on Google Colab:
1717

18-
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1R-vnA0X5gTo_era8YChOvhFMVTVu7K-8?usp=sharing)
18+
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1y6_0MoNWjS9wugv0askP1Jb7zrY_sQT-?usp=sharing)
1919

2020
## Quick install
2121

22+
```bash
23+
pip install genai_stack
24+
```
25+
26+
OR
27+
2228
```bash
2329
pip install git+https://github.com/aiplanethub/genai-stack.git
2430
```
@@ -28,7 +34,7 @@ pip install git+https://github.com/aiplanethub/genai-stack.git
2834
The documentation for GenAI Stack can be found at [genaistack.aiplanet.com](https://genaistack.aiplanet.com).
2935

3036
## GenAI Stack Workflow
31-
![GenAI Stack Workflow](./assets/workflow.png)
37+
![GenAI Stack Workflow](https://github.com/aiplanethub/genai-stack/blob/main/assets/workflow.png)
3238

3339

3440
## What is GenAI Stack all about?
@@ -57,7 +63,7 @@ In short, it orchestrates and streamlines your Generative AI development journey
5763

5864
GenAI Stack thrives in the rapidly evolving landscape of open-source projects. We wholeheartedly welcome contributions in various capacities, be it through innovative features, enhanced infrastructure, or refined documentation.
5965

60-
For a comprehensive guide on the contribution process, please click [here](https://app.gitbook.com/o/-Mg1afEUq3HypLm46Vbq/s/fWJ1RLdoXjMtPiYoXUMB/getting-started/installation).
66+
For a comprehensive guide on the contribution process, please click [here](https://github.com/aiplanethub/genai-stack/blob/main/CONTRIBUTING.md).
6167

6268
## Acknowledgements
6369

Diff for: assets/scripts/gh-actions/setup-poetry.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o nounset
5+
set -o pipefail
6+
7+
pip install poetry
8+
9+
echo "Installing Poetry Version Plugin"
10+
pip install poetry-version-plugin
11+
12+
poetry self show plugins

0 commit comments

Comments
 (0)