Skip to content

Commit a03394c

Browse files
committed
feat: init commit
0 parents  commit a03394c

Some content is hidden

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

61 files changed

+11988
-0
lines changed

‎.gitignore‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# PyCharm
2+
.idea/
3+
4+
# VS Code
5+
.vscode/
6+
7+
# C extensions
8+
*.so
9+
10+
# Translations
11+
*.mo
12+
*.pot
13+
14+
# Sphinx documentation
15+
docs/_build/
16+
docs/_output/
17+
18+
# Miscs
19+
.bin/
20+
cluster*.yaml

‎Makefile‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.PHONY: dev prod requirements.txt
2+
3+
dev:
4+
docker compose up
5+
6+
prod:
7+
paka cluster up
8+
chmod +x ./ops/k8s/deploy.sh
9+
cd ./ops/k8s && ./deploy.sh
10+
11+
requirements.txt:
12+
cd ./backend && poetry export --without dev --format requirements.txt --output requirements.txt

‎backend/.gitignore‎

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# Distribution / packaging
7+
.Python
8+
build/
9+
develop-eggs/
10+
dist/
11+
downloads/
12+
eggs/
13+
.eggs/
14+
lib/
15+
lib64/
16+
parts/
17+
sdist/
18+
var/
19+
wheels/
20+
share/python-wheels/
21+
*.egg-info/
22+
.installed.cfg
23+
*.egg
24+
MANIFEST
25+
26+
# PyInstaller
27+
# Usually these files are written by a python script from a template
28+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
29+
*.manifest
30+
*.spec
31+
32+
# Installer logs
33+
pip-log.txt
34+
pip-delete-this-directory.txt
35+
36+
# Unit test / coverage reports
37+
htmlcov/
38+
.tox/
39+
.nox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*.cover
46+
*.py,cover
47+
.hypothesis/
48+
.pytest_cache/
49+
cover/
50+
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
db.sqlite3
56+
db.sqlite3-journal
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
docs/_output/
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# dotenv
85+
.env
86+
.env.production
87+
.env.development
88+
89+
# virtualenv
90+
.venv/
91+
venv/
92+
ENV/
93+
env/
94+
bin/
95+
pyvenv.cfg
96+
Pipfile.lock
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json
112+
113+
# Pyre type checker
114+
.pyre/
115+
116+
# pytype static type analyzer
117+
.pytype/
118+
119+
# Cython debug symbols
120+
cython_debug/
121+
122+
# Poetry specific
123+
.pypoetry-cache
124+
125+
# ptest-kin
126+
.pytest-kind
127+
128+
.bin/

‎backend/README.md‎

Whitespace-only changes.

‎backend/poetry.lock‎

Lines changed: 3172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎backend/pyproject.toml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[tool.poetry]
2+
name = "sensei-search"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["Jijun Leng"]
6+
readme = "README.md"
7+
8+
[tool.poetry.dependencies]
9+
python = "^3.9"
10+
python-dotenv = "^1.0.1"
11+
openai = "^1.30.5"
12+
loguru = "^0.7.2"
13+
fastapi = "^0.111.0"
14+
python-socketio = "^5.11.2"
15+
uvicorn = "^0.30.1"
16+
aiohttp = "^3.9.5"
17+
trafilatura = "^1.10.0"
18+
redis = "^5.0.5"
19+
20+
[tool.mypy]
21+
ignore_missing_imports = true
22+
disallow_untyped_defs = true
23+
check_untyped_defs = true
24+
plugins = "pydantic.mypy"
25+
warn_unused_configs = true
26+
27+
[tool.isort]
28+
profile = "black"
29+
30+
31+
[tool.poetry.group.dev.dependencies]
32+
isort = "^5.13.2"
33+
black = "^24.4.2"
34+
mypy = "^1.10.0"
35+
jinja2 = "^3.1.4"
36+
paka = "^0.1.9"
37+
38+
[build-system]
39+
requires = ["poetry-core"]
40+
build-backend = "poetry.core.masonry.api"

‎backend/requirements.txt‎

Lines changed: 1502 additions & 0 deletions
Large diffs are not rendered by default.

‎backend/sensei_search/__init__.py‎

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from .samurai_agent import *
2+
3+
__all__ = ["SamuraiAgent"]

0 commit comments

Comments
 (0)