where can I get more detailed documentation about how to define API feedback for certain prompt?

#5
by xiaofei1999 - opened

as titiled.
for certain prompt during interaction with ai4chem, how can I define API configration mapping for certain Q&A templete? where can I find the doc and example regarding this? I need to reply information from database for certain prompt.

Thanks,
Philip Yang

AI4Chem org

API usage was not support by chemllm.org.
For devlopment, please deploy it locally.

API usage was not support by chemllm.org.
For devlopment, please deploy it locally.

thanks. If I deploy ai4chem locally, for certain prompt feeding to ai4chem, how can I invoke underlying restful api to provide answer in ai4chem prompt ?

my case is : if i ask following question : what is the CAS number of BrC1=CC(=CC=C1)C(=O)C1=CC=CC=C1? I found the answer of ai4chem is not accurate. In this case, I want to call an API to provide accrate answer. How can I do this ? could you point me to related documenation or example.

Regards,
Philip Yang

AI4Chem org

CAS number was not included in model's training dataset.
It would be better retrieve this class of information by RAG or web searching, we're planning to build similar programs, as for now, you can refer to LangChain or LAgent for help of development.

CAS number was not included in model's training dataset.
It would be better retrieve this class of information by RAG or web searching, we're planning to build similar programs, as for now, you can refer to LangChain or LAgent for help of development.

@qq8933 ,Zhang Di:
thanks for the answer. I will start to check LangChain or LAgent . Zhang Di, one question, as long as you know, the underlying architecture of ai4chem supports the call and integration with LangChain. Is this right? I am not sure if there is any example link you have online for reference.

Best Regards,

Philip Yang

AI4Chem org

CAS number was not included in model's training dataset.
It would be better retrieve this class of information by RAG or web searching, we're planning to build similar programs, as for now, you can refer to LangChain or LAgent for help of development.

@qq8933 ,Zhang Di:
thanks for the answer. I will start to check LangChain or LAgent . Zhang Di, one question, as long as you know, the underlying architecture of ai4chem supports the call and integration with LangChain. Is this right? I am not sure if there is any example link you have online for reference.

Best Regards,

Philip Yang

We have a internal codebase which was compatible with OpenAI API format that can replace chatgpt applications directly with customable 100% guaranteed valid JSON response constraint .
Please be patient, I will release that codebase on github with ChemLLM applications tutorials.
We're busy in cleaning and improving ChemLLM training data in recent days, sorry.

Sign up or log in to comment