Skip to content

Commit d849c3f

Browse files
committed
added project structure and necessary docs
1 parent b9813e6 commit d849c3f

File tree

13 files changed

+149
-38
lines changed

13 files changed

+149
-38
lines changed

.ipynb_checkpoints/Untitled-checkpoint.ipynb

-6
This file was deleted.

CODE_OF_CONDUCT.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Flock Project Code of Conduct
2+
3+
As contributors and maintainers of the Flock project, we pledge to create and maintain a welcoming, respectful, and inclusive environment for everyone involved. We value the diversity of backgrounds and experiences and are committed to providing a harassment-free and positive experience for all.
4+
5+
## Our Standards
6+
7+
Examples of behavior that contribute to creating a positive environment include:
8+
9+
- **Being respectful:** Treat all individuals with kindness, empathy, and respect, regardless of their background or identity.
10+
- **Being inclusive:** Encourage and welcome participation from all individuals, regardless of their background or experience level.
11+
- **Being considerate:** Be mindful of your words and actions, and avoid any behavior that could be perceived as offensive, discriminatory, or disrespectful.
12+
- **Being collaborative:** Work together to achieve common goals, and support fellow contributors in their efforts.
13+
14+
Examples of unacceptable behavior include:
15+
16+
- **Harassment:** Any form of harassment, intimidation, or discrimination will not be tolerated.
17+
- **Unwelcome behavior:** Deliberate exclusion, name-calling, trolling, or insulting/derogatory comments.
18+
- **Inappropriate content:** Posting or sharing inappropriate or offensive material.
19+
20+
## Responsibilities
21+
22+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective actions in response to any instances of unacceptable behavior.
23+
24+
Contributors to the Flock project are expected to adhere to these standards both within project spaces and in public spaces when discussing the project or interacting with other community members.
25+
26+
## Reporting
27+
28+
If you experience or witness behavior that violates our Code of Conduct, please promptly report it to [[email protected]](mailto:[email protected]). All reports will be reviewed and investigated, and appropriate action will be taken.
29+
30+
## Attribution
31+
32+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
33+
34+
## Questions or Feedback?
35+
36+
If you have any questions or feedback about the Code of Conduct, please contact [[email protected]](mailto:[email protected]).

CONTRIBUTING.md

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
## Contributing to Flock
2+
3+
Thank you for considering contributing to Flock! We welcome contributions from the community to help make this project even better.
4+
5+
## How Can You Contribute?
6+
7+
There are several ways you can contribute to Flock:
8+
9+
1. **Code Contributions:**
10+
11+
- Implement new features or enhancements.
12+
- Fix bugs and issues.
13+
- Improve code quality through refactoring.
14+
- Write and improve documentation.
15+
16+
2. **Testing:**
17+
18+
- Test the project on different environments and report any issues.
19+
- Write unit tests to ensure the stability of the codebase.
20+
21+
3. **Feedback:**
22+
23+
- Provide feedback on the project's features, usability, and documentation.
24+
- Suggest improvements or new ideas.
25+
26+
## Getting Started
27+
28+
If you're new to contributing to open-source projects, here's how you can get started:
29+
30+
1. Fork the repository to your GitHub account.
31+
2. Clone the forked repository to your local machine:
32+
33+
```bash
34+
git clone https://github.com/yourusername/flock.git
35+
cd flock
36+
```
37+
38+
3. Create a new branch for your contribution:
39+
40+
```bash
41+
git checkout -b feature/new-feature
42+
```
43+
44+
4. Make your changes, following the coding guidelines and best practices.
45+
5. Commit your changes:
46+
47+
```bash
48+
git commit -m "Add new feature"
49+
```
50+
51+
6. Push your changes to your forked repository:
52+
53+
```bash
54+
git push origin feature/new-feature
55+
```
56+
57+
7. Open a pull request (PR) against the `master` branch of the original Flock repository.
58+
59+
## Coding Guidelines
60+
61+
- Follow the [PEP 8](https://www.python.org/dev/peps/pep-0008/) style guide for Python code.
62+
- Write clear and concise commit messages.
63+
- Ensure your code passes any existing unit tests.
64+
- Include relevant documentation for your changes.
65+
66+
## Code of Conduct
67+
68+
Please note that by participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md).
69+
70+
## Questions or Feedback?
71+
72+
If you have any questions or feedback, please don't hesitate to reach out by creating an issue or sending an email to [[email protected]](mailto:[email protected]).
73+
74+
We appreciate your contributions and look forward to making Flock even better together!

Untitled.ipynb

-32
This file was deleted.

flock/create_symlinks.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from pathlib import Path
2+
3+
def create_symlink(target_path, symlink_path):
4+
target = Path(target_path).resolve()
5+
symlink = Path(symlink_path).resolve()
6+
7+
if not symlink.exists():
8+
symlink.symlink_to(target)
9+
print(f"Symlink created: {symlink} -> {target}")
10+
else:
11+
print(f"Symlink already exists: {symlink}")
12+
13+
# Replace these paths with your actual paths
14+
embedding_pipeline_src = "embedding_pipeline/src"
15+
prompt_engineering_src = "embedding_pipeline/src"
16+
main_flock_src = "flock/src"
17+
18+
# Create symlinks
19+
create_symlink(embedding_pipeline_src, Path(main_flock_src, "embedding_pipeline"))
20+
create_symlink(prompt_engineering_src, Path(main_flock_src, "prompt_engineering"))

flock/embedding_pipeline/src/main.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Embedding models and utilities
2+
# Storing embedding models and related utility functions
3+
# serialization and loading of trained models

flock/prompt_engineering/src/main.py

Whitespace-only changes.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Shared data preprocessing for all projects
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# embedding-related scripts

flock/src/main.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# orchestrates the mebedding pipeline
2+
# loads data, preprocesses it, generates/embeds text

requirements.txt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
langchain
2+
tiktoken
3+
pypdf
4+
faiss-gpu
5+
chromadb
6+
transformers
7+
InstructorEmbedding
8+
sentence_transformers
9+
accelerate=0.21.0
10+
bitsandbytes
11+
xformers
12+
einops=0.6.1

0 commit comments

Comments
 (0)