Open JedWalton opened 1 year ago
Vector databases can return the nearest text on sentiment. Another field in the vector database class that return nearest neighbour could have a string such as 'myFunctionName()'. This string can be parsed and execute the function in the code base.
This could be in the form of the current messages[], and a desired goal state. Vector sim search current messages[] for a goal state. If COS_SIM_SCORE > THRESOLD execute 'myFunctionName'
Excellent resources from openai cookbook.