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 | Provenance | Actions |
|---|---|---|---|---|
| pageindex_mcts-0.1.0.tar.gz | 43.1 kB | Without provenance | Details for pageindex_mcts-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pageindex_mcts-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pageindex_mcts-0.1.0-py3-none-any.whl |
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
|
Security for pageindex-mcts 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.