Closed allanwakes closed 5 months ago
Thanks for reporting this in.
Are you using the txtai API interface or FastAPI directly?
Thanks for reporting this in.
Are you using the txtai API interface or FastAPI directly?
I used FastAPI directly.
txtai has a built-in FastAPI interface - https://github.com/neuml/txtai/blob/master/src/python/txtai/app/base.py#L312
If you review that file, you can implement a similar locking strategy to prevent this issue.
Thanks for the direction, now I see a lock is needed when updating index. issue closed.
I used txtai (7.0.0) and postgres + pgvector and fastapi, embedding with content and hybrid enabled.
When I request my search api, one by one. no issue at all. But issues came out when I fired 5-10 requests at the same time.
I'm confused, then I cleaned everything, and disabled hybrid this time. But these Errors remain.
Thanks for any ideas.