We have implementation for fiding similar markets (based on question) in one of the agents here: https://github.com/gnosis/prediction-market-agent/blob/main/prediction_market_agent/db/pinecone_handler.py#L150.
Complication is that this is in the PMA repository, which isn't installable through pypi, but maybe you can install it through git directly into labs-api, not a big trouble for me, we are already doing that with predicitonprophet for example.
So, the task here is to use that in a new endpoint.
We have implementation for fiding similar markets (based on question) in one of the agents here: https://github.com/gnosis/prediction-market-agent/blob/main/prediction_market_agent/db/pinecone_handler.py#L150.
Complication is that this is in the PMA repository, which isn't installable through pypi, but maybe you can install it through git directly into labs-api, not a big trouble for me, we are already doing that with predicitonprophet for example.
So, the task here is to use that in a new endpoint.