Skip to content

Commit 2cad5d8

Browse files
author
Pedro Teixeira
committed
Merged PR 2490: Fix chat vectorisation which was using the original words list and not the
Fix chat vectorisation which was using the original words list and not the tokenized one. Related work items: #4549
1 parent df817ca commit 2cad5d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/embedding/chat_process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ async def chat_request(self, msg: ait_c.ChatRequestMessage):
5555
EmbeddingChatProcessWorker.__spacy_wrapper.tokenizeSpacy(s)
5656
for s in list
5757
]
58+
5859
try:
59-
vecs = await self.w2v_client.get_vectors_for_words(words)
60+
vecs = await self.w2v_client.get_vectors_for_words(x_tokens_testset[0])
6061
except aiohttp.client_exceptions.ClientConnectorError as exc:
6162
self.logger.warn(
6263
"Could not receive response from w2v service - {}".format(

0 commit comments

Comments
 (0)