Align REST API and Haystack versions (#2164)

* Align REST API and Haystack versions

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Sara Zan 2022-02-11 14:17:26 +01:00 committed by GitHub
parent 9e18239e3b
commit fdc36292f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 746 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -14,10 +14,11 @@ from starlette.middleware.cors import CORSMiddleware
from rest_api.controller.errors.http_error import http_error_handler
from rest_api.config import ROOT_PATH
from rest_api.controller.router import router as api_router
from haystack import __version__ as haystack_version
def get_application() -> FastAPI:
application = FastAPI(title="Haystack-API", debug=True, version="1.0.0", root_path=ROOT_PATH)
application = FastAPI(title="Haystack REST API", debug=True, version=haystack_version, root_path=ROOT_PATH)
# This middleware enables allow all cross-domain requests to the API from a browser. For production
# deployments, it could be made more restrictive.

View File

@ -382,13 +382,13 @@
},
"outputs": [],
"source": [
"# !pip install git+https://github.com/deepset-ai/haystack.git#egg=farm-haystack[milvus]\n",
"!pip install git+https://github.com/deepset-ai/haystack.git#egg=farm-haystack[milvus]\n",
"\n",
"#from haystack.utils import launch_milvus\n",
"#from haystack.document_stores import MilvusDocumentStore\n",
"from haystack.utils import launch_milvus\n",
"from haystack.document_stores import MilvusDocumentStore\n",
"\n",
"#launch_milvus()\n",
"#document_store = MilvusDocumentStore()"
"launch_milvus()\n",
"document_store = MilvusDocumentStore()"
]
},
{