ohcnetwork / ayushma

Empowering Nurses with Multilingual ICU Protocols. Leveraging the rapid advancements in AI technology, created multilingual interfaces that assist nurses in rapidly upgrading their knowledge about ICU protocols.
https://ayushma-api.ohc.network
MIT License
8 stars 9 forks source link

Create singular function to get embeddings from Ada. #17

Closed shivankacker closed 1 year ago

shivankacker commented 1 year ago

Currently we are getting embeddings during upsert as well as in the /chat api through a function. Replace the logic of getting embeddings during upsert to also use this function. Update the logic in the function to convert input into chunks

siddnikh commented 1 year ago

There is one already. I added it earlier, it's in ayushma/utils/openaiapi.py

Ashesh3 commented 1 year ago

There is one already. I added it earlier, it's in ayushma/utils/openaiapi.py

Looks good, I will refactor the upsert to use the method in utils.