mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-30 00:30:09 +00:00
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:
parent
9e18239e3b
commit
fdc36292f1
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
||||
@ -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()"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user