mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[GH-ISSUE #21] System loop execution #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @afooldeer on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/21
I built the whole environment and the system could run successfully, but when I assigned tasks to him, he would always get stuck ina task loop and execute a command repeatedly in terminal. Is there a problem with my prompt or is there a configuration problem with the environment?
If prompt has a problem, please give me an example.
I configured the environment according to the document, the only difference is that I used Deepseek api.Whether that could be deepseek's problem?
@asdek commented on GitHub (Mar 27, 2025):
Hello @afooldeer
Yes, this is a known issue with all LLMs, which can be resolved by adjusting the
repetition_penaltyparameter when configuring access to a specific model. If you're using Deepseek, you can use the provided config file deepseek.provider.yml or use it as a basis to create your own. After that, mount it inside the Docker container via a volume from the host file system. If you're using the default settings, your.envfile should look like this:By default, the path
/opt/pentagi/conf/deepseek.provider.ymlpoints to the file linked above in the repository, but it can be any file within the file system of the PentAGI container. You can mount it by modifying thedocker-compose.ymlfile.To avoid errors like the ones you're experiencing, the PentAGI backend includes a
repeatingDetectorthat checks that functions are not repeated more than three times (code reference). However, it seems that in this case, it didn't work because the launch arguments differed slightly. You can click on the specific line to view the command execution details or check it in Langfuse.You might try increasing the
temperaturevalue for the specific agent or adding arepetition_penaltyaccording to the recommendations from the LLM provider or the service where the model is available.To ensure your configuration is working correctly, you can run tests inside the PentAGI container:
This will use the environment variables from the
.envfile when the container was launched and provide you with a report in the console. You can also obtain a report file in Markdown format. More details are described in the README.md file.@asdek commented on GitHub (Mar 29, 2025):
Hello @afooldeer,
Update on Embedding Providers:
I've recently made significant updates to PentAGI in PR #26, which adds support for several embedding providers. The supported embedding providers now include:
In #24 user faced with the same issue so your case might be related to the embedding provider configuration, especially since DeepSeek doesn't support embeddings by default. The agents rely on embeddings for effective memory recall and task execution. Without proper embeddings, the agents may get stuck in loops or repeat commands.
Possible Solutions:
Use an Alternative Embedding Provider:
You can configure another embedding provider compatible with OpenAI's API. For instance, you might consider using Baichuan Text Embeddings. Here's how you can set it up in your
.envfile:Make sure to replace
your_baichuan_api_keywith your actual Baichuan API key.Update the
docker-compose.ymlFile:I've added the use of these embedding variables in the latest
docker-compose.ymlfile. Please download the updated file from the master branch of the repository to ensure you have the latest changes.Test Your Embedding Configuration:
If the above steps don't resolve the issue, you can test your embedding setup using the
etesterutility:Run the Embedding Test:
This command will attempt to connect to your configured embedding provider and test the embedding functionality. If there are any errors, please share the output so we can help diagnose the issue.
Check the Vector Store:
If this command shows that there are documents in the vector store, you might need to flush or reindex the embeddings.
Flush or Reindex Embeddings:
Flushing clears the existing embeddings, and reindexing rebuilds them based on your current configuration.
For more detailed instructions, please refer to the Embedding Configuration and Testing section in the README.
Additional Options:
VoyageAI as an Embedding Provider:
You might also consider using VoyageAI as your embedding provider. It's now supported and can be configured similarly in the
.envfile.OpenAI-Compatible Providers:
If you have access to other OpenAI-compatible embedding services, you can configure them using the same approach.
Let me know if you need any more assistance!