diff --git a/README.md b/README.md index ecac21e..641b2ba 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/controller/src/api.py b/controller/src/api.py index 333218d..a32c782 100644 --- a/controller/src/api.py +++ b/controller/src/api.py @@ -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() @@ -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(