Skip to content

Commit

Permalink
Merge pull request #8 from yonishelach/run-pipeline-fix
Browse files Browse the repository at this point in the history
[Controller] Add back QueryItem to endpoint input
  • Loading branch information
guy1992l authored Jul 21, 2024
2 parents 22a894d + 0cf45c3 commit 6446f7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ environment variables and credentials can be loaded from a `.env` file in the ro
data can be stored in local files or remote SQL and Vector databases. the local file storage path can be set by the `AGENT_DATA_PATH` environment variable (defaults to `./data/`).

# Getting it to work
In order to deploy the GenAI Factory locally, we need to update the docker desktop software and to enable host networking.
For more information, please refer to the following link:
https://docs.docker.com/network/drivers/host/#docker-desktop

## Deploy the controller
This command will start the API controller server into a local docker container.
Expand Down
4 changes: 2 additions & 2 deletions controller/src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from pydantic import BaseModel

from controller.src.config import config
from controller.src.model import ChatSession, DocCollection, OutputMode, User
from controller.src.model import ChatSession, DocCollection, OutputMode, User, QueryItem
from controller.src.sqlclient import client

app = FastAPI()
Expand Down Expand Up @@ -110,7 +110,7 @@ def create_tables(drop_old: bool = False, names: list[str] = None):

@router.post("/pipeline/{name}/run")
def run_pipeline(
request: Request, name: str, auth=Depends(get_auth_user)
request: Request, item: QueryItem, name: str, auth=Depends(get_auth_user)
):
"""This is the query command"""
return _send_to_application(
Expand Down

0 comments on commit 6446f7f

Please sign in to comment.