Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation issue #94

Open
tranhoangnguyen03 opened this issue Sep 19, 2024 · 0 comments
Open

Validation issue #94

tranhoangnguyen03 opened this issue Sep 19, 2024 · 0 comments

Comments

@tranhoangnguyen03
Copy link

tranhoangnguyen03 commented Sep 19, 2024

2024-09-19T04:08:22.411590+0000 Error in running OpenAI chat completion: 1 validation error for Thought
  Invalid JSON: trailing characters at line 2 column 1 [type=json_invalid, input_value='{"thought":"The next ste...ons.","evaluation":0.9}', input_type=str]
    For further information visit https://errors.pydantic.dev/2.8/v/json_invalid

Here's my setting

dfs_agent = ToTDFSAgent(
    agent=tot_agent,  # Use the TotAgent instance as the agent for the DFS algorithm
    threshold=0.8,  # Set the threshold for evaluating the quality of thoughts
    max_loops=5,  # Set the maximum number of loops for the DFS algorithm
    prune_threshold=0.5,  # Branches with evaluation < 0.5 will be pruned
    number_of_agents=3,  # Set the number of agents to be used in the DFS algorithm
)
question = "What is a robust approach to automating corporate SOP (Standard Operation Procedures) using LLM technology?"

# Define the initial state for the DFS algorithm
initial_state = f"""
Envision a group of three experts working in unison to tackle a question by employing a tree of thoughts strategy. Each expert will thoroughly explain their line of thinking at every step, while also considering the insights provided by their peers. They will openly recognize any mistakes and build upon the group's shared understanding. This iterative process will continue until a definitive solution is reached. Structure the entire response as a markdown table. The question is {question}
"""

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant