Skip to content

Commit 649c92b

Browse files
committed
Add CLI and prepare for future AI features
1 parent a22b978 commit 649c92b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+2452
-6705
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# mlflow files
2-
mlruns/
3-
41
# Byte-compiled / optimized / DLL files
52
__pycache__/
63
*.py[cod]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ Synalinks can help you simplify these tasks by leveraging decade old practices i
5757
## Install
5858

5959
```shell
60-
pip install synalinks
60+
uv pip install synalinks
6161
```
6262

63-
or (recommended)
63+
Start your project with
6464

6565
```shell
66-
uv pip install synalinks
66+
uv run synalinks init
6767
```
6868

6969
## Programming your application: 4 ways

coverage-badge.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/Synalinks API/Config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11

2+
::: synalinks.src.backend.common.global_state
3+
24
::: synalinks.src.backend.config

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
## Install
44

55
```shell
6-
pip install synalinks
6+
uv pip install synalinks
77
```
88

9-
or (recommended)
9+
Start your project with
1010

1111
```shell
12-
uv pip install synalinks
12+
uv run synalinks init
1313
```
1414

1515
## Programming your application: 4 ways

my-project/.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
12+
# Environment variables
13+
.env

my-project/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.13
2+
3+
COPY ./requirements.txt ./requirements.txt
4+
5+
RUN apt update && apt install -y graphviz
6+
7+
RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
8+
9+
COPY . ./
10+
11+
CMD ["fastapi", "run", "my_project/src/main.py", "--host", "0.0.0.0", "--port", "8000"]

my-project/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# my-project
2+
## My awesome project
3+
4+
[my-project](my-project.png)
5+
6+
# Install dependencies
7+
8+
To plot your programs, you will need graphviz
9+
10+
```shell
11+
sudo apt update
12+
sudo apt install graphviz
13+
```
14+
15+
# Install your project as a library
16+
17+
```shell
18+
cd my-project
19+
uv venv
20+
uv pip install .
21+
```
22+
23+
# Train your application
24+
25+
```shell
26+
cd my-project
27+
python3 scripts/train.py
28+
```
29+
30+
# Serve your API
31+
32+
```shell
33+
cd my-project
34+
docker compose up
35+
```
36+
37+
Powered by [🧠🔗 - synalinks](https://github.com/SynaLinks/synalinks)
38+
39+
More information available in the [documentation](https://synalinks.github.io/synalinks/)
40+
41+
If you have questions, check out [FAQ](https://synalinks.github.io/synalinks/FAQ/).
42+
43+
Join our [Discord](https://discord.gg/82nt97uXcM) to never miss any update!
44+
45+
Happy coding 😀!

my-project/datasets/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Here lies your custom datasets

my-project/datasets/x_test.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
[
2+
{
3+
"query": "What are the fundamental principles of quantum mechanics, and how do they differ from classical physics?"
4+
},
5+
{
6+
"query": "Analyze the impact of the Industrial Revolution on global economic development."
7+
},
8+
{
9+
"query": "Explain the theory of relativity and its implications for our understanding of space and time."
10+
},
11+
{
12+
"query": "Discuss the role of the unconscious mind in Freudian psychoanalysis."
13+
},
14+
{
15+
"query": "Compare and contrast the political philosophies of John Locke and Thomas Hobbes."
16+
},
17+
{
18+
"query": "What are the primary causes of climate change, and what are the most effective strategies for mitigation?"
19+
},
20+
{
21+
"query": "Explain the significance of the double helix structure of DNA in genetics."
22+
},
23+
{
24+
"query": "Analyze the economic theories of Karl Marx and their influence on modern economics."
25+
},
26+
{
27+
"query": "Discuss the ethical considerations surrounding genetic engineering and designer babies."
28+
},
29+
{
30+
"query": "What are black holes, and how do they form and evolve in the universe?"
31+
},
32+
{
33+
"query": "Explain the concept of cultural hegemony and its role in shaping societal norms."
34+
},
35+
{
36+
"query": "Compare and contrast the artistic movements of Surrealism and Dadaism."
37+
},
38+
{
39+
"query": "What are the challenges and opportunities presented by renewable energy sources?"
40+
},
41+
{
42+
"query": "Discuss the impact of colonialism on the cultural identity of colonized nations."
43+
},
44+
{
45+
"query": "Explain the process of photosynthesis and its importance in the ecosystem."
46+
},
47+
{
48+
"query": "Analyze the influence of the Renaissance on the development of Western art and science."
49+
},
50+
{
51+
"query": "What are the key differences between qualitative and quantitative research methods?"
52+
},
53+
{
54+
"query": "Discuss the role of artificial intelligence in transforming modern healthcare."
55+
},
56+
{
57+
"query": "Explain the concept of entropy and its significance in thermodynamics."
58+
},
59+
{
60+
"query": "Analyze the factors contributing to the rise and fall of the Roman Empire."
61+
},
62+
{
63+
"query": "What are the implications of the butterfly effect in chaos theory?"
64+
},
65+
{
66+
"query": "Discuss the impact of globalization on local cultures and economies."
67+
},
68+
{
69+
"query": "Explain the principles of evolution by natural selection and their evidence in the fossil record."
70+
},
71+
{
72+
"query": "Analyze the significance of the French New Wave in cinema history."
73+
},
74+
{
75+
"query": "What are the ethical considerations in the development and use of autonomous weapons?"
76+
},
77+
{
78+
"query": "Discuss the role of the media in shaping public opinion and political discourse."
79+
},
80+
{
81+
"query": "Explain the concept of the singularity in the context of artificial intelligence."
82+
},
83+
{
84+
"query": "Analyze the impact of the internet on social interactions and community formation."
85+
},
86+
{
87+
"query": "What are the challenges in achieving sustainable agriculture practices?"
88+
},
89+
{
90+
"query": "Discuss the significance of the Human Genome Project in medical research."
91+
},
92+
{
93+
"query": "Explain the principles of game theory and their applications in economics and politics."
94+
},
95+
{
96+
"query": "Analyze the role of women in the workforce during World War II and its lasting effects."
97+
},
98+
{
99+
"query": "What are the implications of the observer effect in quantum mechanics?"
100+
}
101+
]

0 commit comments

Comments
 (0)