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

Create a search based document for tree-of-thoughts #87

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .fdignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.*
*.{png,jpeg,jpg,gif,lock}
LICENSE
docs
6 changes: 6 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
!.gitignore
!*
!*/*
cache_db.json
cache_tree.json
vector_cache
1 change: 1 addition & 0 deletions docs/cache_title.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_default": {"1": {"path": "/README.md", "hash": "3f69fa5b832ce44cb6f857807345f1da", "title": "Monte Carlo Tree of Thoughts: AI Collaboration Tool"}, "2": {"path": "/README.md:1-9", "hash": "8e275167dc57fe88612f20ef61a4f501", "title": "Social Media Sharing Buttons"}, "3": {"path": "/README.md:9-12", "hash": "8c5d0c97a34933771504d8f508eae4ba", "title": "Sharing Options for Tree-of-Thoughts Project"}, "4": {"path": "/README.md:12-46", "hash": "5048d50323ad64d849a5c76437a20618", "title": "Boost Model Reasoning with ToT Algorithm"}, "5": {"path": "/README.md:48-96", "hash": "1b100a6455c06c5c6ee090564a377b3e", "title": "Generating Thoughts with Code"}, "6": {"path": "/README.md:97-140", "hash": "135b10f7c25fdc536b57af4f12ce312c", "title": "Monte Carlo Tree of Thoughts Algorithm"}, "7": {"path": "/README.md:141-162", "hash": "4b917dd2db19d74fc19fe12006f63c5c", "title": "Collaborative Problem Solving Tree"}, "8": {"path": "/example.py", "hash": "1fa61a58ff62646788e49615b202e11e", "title": "Monte Carlo Tree Search with OpenAI Model"}, "9": {"path": "/example.py:1-45", "hash": "7bc34f7463b2a62384e9889a03017b50", "title": "OpenAI Thoughts Tree Solver"}, "10": {"path": "/example.py:46-53", "hash": "2c0fa1d5700157e07aec617ae66b916b", "title": "Object Initialization and Printing Solution"}, "11": {"path": "/prompts.txt", "hash": "fb59eb0ae04b455b75a7b5e5cd47e5cf", "title": "Collaborative Tree-of-Thoughts Q&A"}, "12": {"path": "/prompts.txt:1-5", "hash": "46385a5275420768e0ab4d1eca00854c", "title": "Experts' Collaborative Thought Process"}, "13": {"path": "/prompts.txt:5-9", "hash": "43897a6a6d81b61ea3f8c07b46dff393", "title": "Collaborative Tree of Thoughts Problem Solving"}, "14": {"path": "/prompts.txt:9-9", "hash": "8d8aa5847bcc4f74fa4a8334d4205a3b", "title": "Collaborative Problem-Solving Process"}, "15": {"path": "/pyproject.toml", "hash": "050e15399ac4e7a3609dbc783c368df4", "title": "Configure Pyproject.toml for Python"}, "16": {"path": "/pyproject.toml:1-41", "hash": "d2050aaa182b4c9b3b9614b6804e97cd", "title": "Pyproject.toml: Project Configurations"}, "17": {"path": "/pyproject.toml:42-53", "hash": "9d0a86e28e6bbe1885eb681b972d6ece", "title": "Configuring Ruff and Black for Linting"}, "18": {"path": "/requirements.txt", "hash": "78ed0180d1b6a55b55034e16c55c15cd", "title": "Importing NLP, AI, and Distributed Libraries"}, "19": {"path": "/tree_of_thoughts/README.md", "hash": "ff7a130fd1bb629734f548269766c35e", "title": "Enhanced Tree of Thoughts with Advanced Search Algos and Optimized Classes"}, "20": {"path": "/tree_of_thoughts/README.md:1-36", "hash": "0c20ddae621567733f94719c15b920eb", "title": "Changelog: TreeofThoughts Refactoring"}, "21": {"path": "/tree_of_thoughts/README.md:38-60", "hash": "8d22d68805128ebce69655bc1f5ee94a", "title": "TreeofThoughts: Tree-based Search Algorithm for Problem Solving"}, "22": {"path": "/tree_of_thoughts/README.md:61-77", "hash": "4bcef7245c63d43889d734a83d10dc59", "title": "Algorithmic Search Methods"}, "23": {"path": "/tree_of_thoughts/README.md:78-94", "hash": "38e0b2d7fb1ec873627b383abbb88cfa", "title": "Pruning Threshold in Search Algorithms"}, "24": {"path": "/tree_of_thoughts/README.md:94-107", "hash": "01588e502c3ca91e8120e0feb5047d24", "title": "Recursive Depth-First Search Algorithm"}, "25": {"path": "/tree_of_thoughts/README.md:109-127", "hash": "a25b4fd82f563deef7cc89d292329746", "title": "Tree of Thoughts Search Algorithm Implementation"}, "26": {"path": "/tree_of_thoughts/README.md:128-141", "hash": "71910bade4edcc4a019b424e0c624e92", "title": "Tree of Thoughts Algorithms: BFS, DFS, Best-First"}, "27": {"path": "/tree_of_thoughts/README.md:143-154", "hash": "4597b482a6e6d2f1ae87885b82f3f956", "title": "Tree of Thoughts Search Algorithms"}, "28": {"path": "/tree_of_thoughts/README.md:156-169", "hash": "cfd5e1c094266b414820f82e359e3a3a", "title": "Optimized Tree of Thoughts: Monte Carlo and Solve Algorithms"}, "29": {"path": "/tree_of_thoughts/README.md:169-169", "hash": "47d902c94b055dd2bacddf80155c4e16", "title": "Efficient Search Algorithm with Custom Parameters"}, "30": {"path": "/tree_of_thoughts/__init__.py", "hash": "44cbcc38a86a5c66b8df67b08117cf9a", "title": "Initializing ThoughtTree Models"}, "31": {"path": "/tree_of_thoughts/base.py", "hash": "84e8ec14fd75a979ef744826b5fb719c", "title": "Abstract Base Class for Language Models"}, "32": {"path": "/tree_of_thoughts/huggingface_model.py", "hash": "a08a7f855f90cfe27917d866e1028ece", "title": "HuggingFace Model Class and Function"}, "33": {"path": "/tree_of_thoughts/huggingface_model.py:1-31", "hash": "ab0cb88cd6a5742cbbf292a15056bf9b", "title": "Generate Thoughts with Huggingface Model"}, "34": {"path": "/tree_of_thoughts/huggingface_model.py:33-58", "hash": "0d318a6ef88d60f78d399a553cc8f709", "title": "Model-based State Evaluation"}, "35": {"path": "/tree_of_thoughts/huggingface_model.py:59-64", "hash": "381481be764fb144e516ce7dc262bbe2", "title": "Error Handling and Resetting State Values"}, "36": {"path": "/tree_of_thoughts/openai_models.py", "hash": "fe9df4cd0950de94de893cfbe3a96346", "title": "OpenAI Chat API Generative Model"}, "37": {"path": "/tree_of_thoughts/openai_models.py:1-34", "hash": "2fb51d117024499333e0575892f6d8db", "title": "OpenAI Language Model Class"}, "38": {"path": "/tree_of_thoughts/openai_models.py:35-64", "hash": "669ed508f0828dde6ff11cbdeb239038", "title": "OpenAI Chat API Integration for ReAct Prompting"}, "39": {"path": "/tree_of_thoughts/openai_models.py:65-92", "hash": "ec2dfb612c577390f71d2d517160f35f", "title": "Generate Thoughts using OpenAI Models"}, "40": {"path": "/tree_of_thoughts/openai_models.py:92-110", "hash": "948d215897a26dc3ba3867b47043e1df", "title": "Reinforcement Learning from Rejected Solutions"}, "41": {"path": "/tree_of_thoughts/openai_models.py:110-122", "hash": "34cb9cc3eca232f08be0f1f557b81298", "title": "Error-Avoiding Generative Solution"}, "42": {"path": "/tree_of_thoughts/openai_models.py:123-146", "hash": "2d8e5615b305961a4e4a1c2c00f9efa7", "title": "Evaluating States with Value Strategy"}, "43": {"path": "/tree_of_thoughts/openai_models.py:147-168", "hash": "545477a43a8b81ebe51e318ac03fe987", "title": "OpenAI Model: Thought Evaluation"}, "44": {"path": "/tree_of_thoughts/openai_models.py:169-186", "hash": "f90ae75f8f52c16d465a092d223b236a", "title": "OpenAI API for State Evaluation"}, "45": {"path": "/tree_of_thoughts/treeofthoughts.py", "hash": "cefe87e87192c3f2fa7ec5c14830168d", "title": "Multi-search Algorithms Tree of Thoughts"}, "46": {"path": "/tree_of_thoughts/treeofthoughts.py:1-40", "hash": "0727ba1a1d0fb1810595ddf421c32cf0", "title": "Tree of Thoughts Class and Methods"}, "47": {"path": "/tree_of_thoughts/treeofthoughts.py:41-79", "hash": "8fb670938b8e5f02e616fe30c07b2227", "title": "Tree of Thoughts BFS Algorithm"}, "48": {"path": "/tree_of_thoughts/treeofthoughts.py:80-100", "hash": "e5708e6eb44525e657936c6fe32f25f3", "title": "Concurrent Thought Evaluation"}, "49": {"path": "/tree_of_thoughts/treeofthoughts.py:102-122", "hash": "e71d592c6701a114d9fd610f2b20331e", "title": "Pruning Threshold Adjustment"}, "50": {"path": "/tree_of_thoughts/treeofthoughts.py:124-139", "hash": "698a682252a2f950057a4d23c05ddd83", "title": "Filtering and Logging State Values"}, "51": {"path": "/tree_of_thoughts/treeofthoughts.py:141-172", "hash": "0abb0c96337f8a7d02bdbdb693a9a41d", "title": "Error-Handled Solution Finder"}, "52": {"path": "/tree_of_thoughts/treeofthoughts.py:173-203", "hash": "8a7fbd18bbf3a2c8c4f02eb32d086a4a", "title": "Depth-First Thought Evaluation"}, "53": {"path": "/tree_of_thoughts/treeofthoughts.py:204-233", "hash": "00525e96d74f65ef26b4a89b11b5b4aa", "title": "Best-First Search Algorithm with Priority Queue"}, "54": {"path": "/tree_of_thoughts/treeofthoughts.py:234-265", "hash": "8612bf16b44208366563731c42d34874", "title": "Tree of Thoughts: Thought Generation and Evaluation Algorithm"}, "55": {"path": "/tree_of_thoughts/treeofthoughts.py:266-296", "hash": "024cf99da78c85faa5902c55f190d1dd", "title": "A* Algorithm for Optimized Thought Generation"}, "56": {"path": "/tree_of_thoughts/treeofthoughts.py:297-329", "hash": "e9db49ef2ec31d4483eba4de04cec9bc", "title": "Graph Search Algorithm: Priority Queue and Path Reconstruction"}, "57": {"path": "/tree_of_thoughts/treeofthoughts.py:330-356", "hash": "d0f0443c1e2e9d5f68187222db476988", "title": "Optimizing Tree-Based State Scores"}, "58": {"path": "/tree_of_thoughts/treeofthoughts.py:357-384", "hash": "44ac31f3bcef9c9848363801e05db485", "title": "Evaluation-Guided Path Reconstruction"}, "59": {"path": "/tree_of_thoughts/treeofthoughts.py:385-416", "hash": "76872912011cf846b53941a43d78445e", "title": "Adjustable Tree of Thoughts Algorithm"}, "60": {"path": "/tree_of_thoughts/treeofthoughts.py:417-452", "hash": "fc1d14ac34ddc78c91d470d56fc2d5db", "title": "Monte Carlo Thought Generation"}, "61": {"path": "/tree_of_thoughts/treeofthoughts.py:453-478", "hash": "250c813fb73119cdd43a5e83347190c3", "title": "Transposition Table Update and UCB1 Calculation"}, "62": {"path": "/tree_of_thoughts/treeofthoughts.py:479-503", "hash": "dc2cd16def469d5206822180578c3efe", "title": "Tree Model State Selection"}, "63": {"path": "/tree_of_thoughts/treeofthoughts.py:505-507", "hash": "fd0880243f8e81fb02ec66f44b9dc37b", "title": "Valid Solution Check"}}}
Loading