Refactx package
Project description
ReFactX is a scalable method that enables LLMs to access external knowledge without depending on retrievers or auxiliary models. It uses constrained generation with a pre-built prefix-tree index. During inference, to acquire external knowledge, the LLM generates facts with constrained generation which allows only sequences of tokens that form an existing fact.
Install and Try
pip install refactx
Quick example (print package version)
import refactx
print(refactx.__version__)
Cite
@InProceedings{10.1007/978-3-032-09527-5_16,
author="Pozzi, Riccardo
and Palmonari, Matteo
and Coletta, Andrea
and Bellomarini, Luigi
and Lehmann, Jens
and Vahdati, Sahar",
editor="Garijo, Daniel
and Kirrane, Sabrina
and Salatino, Angelo
and Shimizu, Cogan
and Acosta, Maribel
and Nuzzolese, Andrea Giovanni
and Ferrada, Sebasti{\'a}n
and Soulard, Thibaut
and Kozaki, Kouji
and Takeda, Hideaki
and Gentile, Anna Lisa",
title="ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation",
booktitle="The Semantic Web -- ISWC 2025",
year="2026",
publisher="Springer Nature Switzerland",
address="Cham",
pages="290--308",
isbn="978-3-032-09527-5",
doi="10.1007/978-3-032-09527-5_16",
url="https://doi.org/10.1007/978-3-032-09527-5_16"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file refactx-0.1.1.tar.gz.
File metadata
- Download URL: refactx-0.1.1.tar.gz
- Upload date:
- Size: 31.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab401ce8ecb429dfba4ba917d4ed0faee89511a69a83786daa7c7371c7a5354
|
|
| MD5 |
c590fc70d4e9f3be72a2705a3f520f73
|
|
| BLAKE2b-256 |
205b72ceed32bf8484923ac2d97b627396b9df407b6ee93881e7d8478af54ce2
|
File details
Details for the file refactx-0.1.1-py3-none-any.whl.
File metadata
- Download URL: refactx-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98902ead7f406f8019c8956b0b946cd85fabb1c0814cd9b0591adc8fe71106d2
|
|
| MD5 |
4768e0cea7f59025d00636c0c0ca8649
|
|
| BLAKE2b-256 |
4c2aa4ce15700ffa0a6a39a5d08c810009246c64876ee8ba683e4f45b119ea67
|