Commit 0254dd52 authored by 赵威's avatar 赵威

update config

parent 4b067c1d
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<config name="initializer_list"> <config name="initializer_list">
<element value="face_similarity.diary_cover_similarity"/> <element value="face_similarity.diary_cover_similarity"/>
<element value="word_vector.word_to_vec"/> <element value="word_vector.word_to_vec"/>
<element value="personas_vector.match_api"/>
</config> </config>
<config name="statuses" value="strategy_embedding.system:statuses"/> <config name="statuses" value="strategy_embedding.system:statuses"/>
</gm_rpcd_config> </gm_rpcd_config>
...@@ -16,11 +16,6 @@ FAISS_TAGS_INDEX = faiss.read_index(INDEX_PATH) ...@@ -16,11 +16,6 @@ FAISS_TAGS_INDEX = faiss.read_index(INDEX_PATH)
TAG_EMBEDDING_DICT = redis_client_db.hgetall("personas_tags_embedding") TAG_EMBEDDING_DICT = redis_client_db.hgetall("personas_tags_embedding")
@bind("strategy_embedding/personas_vector/hello")
def hello():
return ["hello", "world"]
@bind("strategy_embedding/personas_vector/match") @bind("strategy_embedding/personas_vector/match")
def match_tractate_by_device(device_id, n=10): def match_tractate_by_device(device_id, n=10):
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment