Improving the function search #330
Replies: 2 comments 2 replies
-
I think another way is to define some taxonomy with the definitions and let llm to do intent classification. We can do unsupervised learning first if we have some available utterances to do mapping and user intent exploration. |
Beta Was this translation helpful? Give feedback.
-
Just looked through the codebase and found the evaluation pipeline currently in place for the search functions. I am wondering if it is possible to populate a hugging face dataset for running evaluation rather then generate synthetic dataset each time? This allows better curation of datasets and can dump different datasets generated by different prompts (also can incorporate annoynimised usage data in there later) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We are trying to find better ways of implementing function search. Currently openai embeddings are created by json dumping the fields of the
FunctionEmbeddingFields
class and passing that to theOPENAI_EMBEDDING_MODE
with aOPENAI_EMBEDDING_DIMENSION
.class FunctionEmbeddingFields(BaseModel): name: str description: str parameters: dict
The semantic similarity would then be between this embedding and the embedded
intent
. I wanted to make this a discussion and talk about different solutions here. What would be important is to evaluate the performance of the model by creating a synthetic dataset of intents mapping to the correct functions. I wanted to discuss also if providing many options as a response even makes sense and for which use cases.Beta Was this translation helpful? Give feedback.
All reactions