PageIndexMCTS
PageIndexMCTS is a Python library that implements Monte Carlo Tree Search (MCTS) for efficient page indexing and retrieval, integrated with Large Language Models (LLMs).
Features
- MCTS Implementation: Includes standard MCTS and Hybrid MCTS (PUCT) algorithms.
- LLM Integration: Supports using LLMs (like ChatGPT) for value estimation and policy priors.
- Parallel Search: Optimized for performance with parallel simulation steps.
- Document Indexing: Tools for indexing PDF and Markdown documents.
Installation
You can install the package directly from source:
pip install .
Usage
See the example directory for usage demonstrations.
Basic MCTS Search
from search.tree.mcts import PageIndexMCTS
# Initialize your structure and query
# ...
search = PageIndexMCTS(structure, query, use_llm=True, n_threads=4)
search.run_search(iterations=50)
results = search.get_top_results(n=3)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for pageindex-mcts 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pageindex_mcts-0.1.0.tar.gz | 43.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pageindex_mcts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 87.2 kB
Release files / pageindex_mcts-0.1.0.tar.gz
| Download URL | pageindex_mcts-0.1.0.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b22637d81b8a160cab4c6f3e2c26459f6a557c8505aeff2128228140b2dc929
|
|
BLAKE2b-256 checksum How to use checksums |
ab72f375f0b2eda11de5b0486061c89ffb61b6ef1b2630b6afecc97f7f4618cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / pageindex_mcts-0.1.0-py3-none-any.whl
| Download URL | pageindex_mcts-0.1.0-py3-none-any.whl |
|---|---|
| Size | 44.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44cd9e47f6f98dc3aa26ac86da04489b4d767dcef92fb8a61e0498526d1422fd
|
|
BLAKE2b-256 checksum How to use checksums |
5c274856a56a2434dbd5a7ea6d65d984a755dfc6b3f55d751e1db2ab399e4738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|