Hello, I have just started using Phoenix. I have a chatbot project written in Python. I want to collect frequently asked questions in Phoenix and pull them from there when similar question content comes up. If a different question comes up, how can I do it?
You can collect frequently asked questions (FAQs) in Phoenix by creating a dataset and uploading your questions and responses using the upload_dataset method. To retrieve similar questions when a new query comes in, you can use Phoenix's embedding-based retrieval: generate an embedding for the incoming question and compare it to the embeddings in your FAQ dataset to find the most similar ones. If no similar question is found (i.e., the similarity score is below a threshold), you can treat it as a new or different question and optionally add it to your dataset for future retrievals. For code examples, see Creating Datasets and Retrieval with Embeddings.Would you like a step-by-step code example for this workflow?Sources:
- Retrieval with Embeddings
馃挕聽Hint: Mention RunLLM in the thread for followups.
Thank you 馃敀[private user]
