Skip to content

Commit

Permalink
Merge pull request #9 from yonishelach/v0.1
Browse files Browse the repository at this point in the history
Version 0.1
  • Loading branch information
guy1992l authored Aug 26, 2024
2 parents 6446f7f + 57796eb commit 9f5fc99
Show file tree
Hide file tree
Showing 34 changed files with 4,418 additions and 938 deletions.
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,22 @@ controller:

# Announce the server is running:
@echo "GenAI Factory Controller is running in the background"

.PHONY: fmt
fmt: ## Format the code using Ruff
@echo "Running ruff checks and fixes..."
python -m ruff check --fix-only
python -m ruff format

.PHONY: lint
lint: fmt-check lint-imports ## Run lint on the code

lint-imports: ## Validates import dependencies
@echo "Running import linter"
lint-imports

.PHONY: fmt-check
fmt-check: ## Check the code (using ruff)
@echo "Running ruff checks..."
python -m ruff check --exit-non-zero-on-fix
python -m ruff format --check
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ python -m controller.src.main ingest -l web https://milvus.io/docs/overview.md

To ask a question:
```shell
python -m controller.src.main query "What is a vector?"
python -m controller.src.main infer "What is Milvus?"
```


Expand All @@ -64,8 +64,9 @@ Options:

Commands:
config Print the config as a yaml file
ingest Ingest documents into the vector database
initdb Initialize the database (delete old tables)
infer Run a chat query on the data source
ingest Ingest data into the data source.
initdb Initialize the database tables (delete old tables).
list List the different objects in the database (by category)
query Run a chat query on the vector database collection
update Create or update an object in the database
```
277 changes: 0 additions & 277 deletions controller/src/api.py

This file was deleted.

Loading

0 comments on commit 9f5fc99

Please sign in to comment.