-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for openai embedding (#23)
* feat: add support for openai embeddings * fix: install openai
- Loading branch information
Showing
10 changed files
with
270 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
SQLALCHEMY_DATABASE_URL=sqlite:///instance/app.db | ||
PANDAETL_SERVER_URL="https://api.panda-etl.ai/" # optional | ||
API_SERVER_URL="https://api.domer.ai" # optional | ||
API_SERVER_URL="https://api.domer.ai" # optional | ||
USE_OPENAI_EMBEDDINGS=false # optional | ||
OPENAI_API_KEY=sk-xxxxxxxxxxxx # optional | ||
CHROMA_BATCH_SIZE=5 # optional | ||
MAX_FILE_SIZE=20971520 # optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.PHONY: run migrate upgrade | ||
|
||
run: | ||
poetry run uvicorn app.main:app --reload --port 5328 | ||
poetry run uvicorn app.main:app --reload --port 5328 --log-level info | ||
|
||
migrate: | ||
poetry run alembic upgrade head | ||
|
||
.PHONY: generate-migration | ||
generate-migration: | ||
.PHONY: generate-migration | ||
generate-migration: | ||
poetry run alembic revision --autogenerate -m "$$message" | ||
|
||
test: | ||
poetry run pytest | ||
poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.