Giorgio Robino
Giorgio Robino
Oh, got it! The description says the LLM should format JSON structured data. If it works, this may be a way to interface with any Python function. I'll give it...
Thanks Harrison! It seems working! I updated the 2 modules following your suggestions: ```python # # weather_data # is an example of a custom python function # that takes a...
# UPDATE 2 I explored the last thought of my previous comment; A generic tool (that wrap any python function) could: - takes in input: - requests as text (sentences...
# UPDATE 3 i modified the tool behavior to mitigate agent's inventions: - accepting in input a list of required_info as an additional argument in the input JSON data structure...
Thanks Josh for your notes and examples! > I have the best luck when I use the return_direct=True property and just get the requested data back immediately. Good remind of...
# UPDATE 4 I did more experiments and I updated the code I share here. ## 1. Lesson learned; initial issue maybe solved The initial problem I raised is how...
Interesting. In facts in the previous apparently correct answer, `weather` tool is not called (and don't add useful info to obtain the final result), so it's unclear why `ReAct` behaves....
>  > > I don't know why my input turn into string raise a Attribute Error: AttributeError: 'str' object has no attribute 'read' I see that after the JSON...
@ari62 @all Yes, OpenAI models "function calling" feature is the OpenAI final solution when concerning the title of the current issue (I opened in February 2023, at the times function...
@i-am-neo Q1 (using a local model) Right question. As far as I understand, so far you can't, but you can use a model from huggingface hub. See: https://langchain.readthedocs.io/en/latest/modules/llms/integrations/huggingface_hub.html