mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-22 18:57:14 +00:00
publish as catena-corpus on PyPI and npm
Both registries already have a `catena`: an HPE blockchain client on PyPI,
and a JavaScript OOP wrapper at 2.2.0 on npm. Neither is going anywhere, so
the distributions take a name that is free on both.
The Python import is unaffected — a distribution name and a module name are
independent there, so `pip install catena-corpus` still gives `import
catena`, and nothing in the examples or the bindings changes. On npm the
package name is the import specifier, so that one does change: `import
{ chunkMarkdown } from "catena-corpus"`.
The crates keep their own names. `catena` is free on crates.io.
This commit is contained in:
+2
-2
@@ -75,12 +75,12 @@ convert, then loop, and what is left is the part that is actually about your
|
||||
schema.
|
||||
|
||||
```sh
|
||||
pip install catena
|
||||
pip install catena-corpus
|
||||
python examples/python/book_to_citations.py
|
||||
```
|
||||
|
||||
```sh
|
||||
pip install catena psycopg
|
||||
pip install catena-corpus psycopg
|
||||
DATABASE_URL=postgresql://user@host/db \
|
||||
python examples/python/search_and_rerank.py "why did the empire decline"
|
||||
```
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"search": "node --experimental-strip-types src/search-and-rerank.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"catena": "file:../../crates/bindings/npm/dist"
|
||||
"catena-corpus": "file:../../crates/bindings/npm/dist"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
// broadcast — a work of the US government, so public domain.
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
import { parseSubtitles, segmentCues, packCues, countTokens } from "catena";
|
||||
import { parseSubtitles, segmentCues, packCues, countTokens } from "catena-corpus";
|
||||
|
||||
const SAMPLE = `WEBVTT
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
// vector database and whatever else. What they came from does not matter
|
||||
// here; only where each of them placed does.
|
||||
|
||||
import { fuseHits, type Hit } from "catena";
|
||||
import { fuseHits, type Hit } from "catena-corpus";
|
||||
|
||||
// `payload` is whatever you want carried alongside — rrf hands it back
|
||||
// untouched, so a hit can arrive here with the row it came from attached.
|
||||
|
||||
Reference in New Issue
Block a user