Skip to content

Commit

Permalink
fix the relative import. (opea-project#45)
Browse files Browse the repository at this point in the history
* fix the relative import.

Signed-off-by: Ding, Ke <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Ding, Ke <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
kding1 and pre-commit-ci[bot] authored May 12, 2024
1 parent 30f5c92 commit f9309c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions comps/retrievers/langchain/retriever_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@

from langchain_community.embeddings import HuggingFaceBgeEmbeddings
from langchain_community.vectorstores import Redis
from redis_config import INDEX_NAME, INDEX_SCHEMA, REDIS_URL

from comps import EmbedDoc768, SearchedDoc, TextDoc, opea_microservices, register_microservice

from .redis_config import INDEX_NAME, INDEX_SCHEMA, REDIS_URL


@register_microservice(name="opea_service@retriever_redis", expose_endpoint="/v1/retrieval", host="0.0.0.0", port=7000)
def retrieve(input: EmbedDoc768) -> SearchedDoc:
Expand Down

0 comments on commit f9309c8

Please sign in to comment.