Created
November 6, 2025 21:26
-
-
Save davidmezzetti/e6bc7efaab27635ec26346af09f10dee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from txtai import Embeddings | |
| from txtai.pipeline import Textractor | |
| urls = "https://github.com/neuml/txtai" | |
| textractor = Textractor(chunker="semantic") | |
| embeddings = Embeddings(backend="ggml", ggml={"quantize": "q4_0"}) | |
| embeddings.index((url, x) for x in textractor(url)) | |
| embeddings.save("gguf") | |
| # gguf-dump gguf/embeddings | |
| # | |
| # * File is LITTLE endian, script is running on a LITTLE endian host. | |
| # * Dumping 3 key/value pair(s) | |
| # 1: UINT32 | 1 | GGUF.version = 3 | |
| # 2: UINT64 | 1 | GGUF.tensor_count = 1 | |
| # 3: UINT64 | 1 | GGUF.kv_count = 0 | |
| # * Dumping 1 tensor(s) | |
| # 1: 11136 | 384, 29, 1, 1 | Q4_0 | data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment