Skip to content

Commit 6812792

Browse files
authored
Fix formatting issues (#218)
1 parent 429a11f commit 6812792

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/integrations/embedding/superlinked.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ sidebarTitle: Superlinked
88
## Installation
99

1010
<CodeGroup>
11+
```bash Python icon=Python
1112
pip install sie-lancedb
1213
```
1314

15+
```bash TypeScript icon=js
1416
npm install @superlinked/sie-lancedb @lancedb/lancedb
1517
```
1618
</CodeGroup>
@@ -33,6 +35,7 @@ Supported parameters on `.create()`:
3335

3436
## Usage
3537

38+
```py Python icon=Python
3639
import lancedb
3740
from lancedb.embeddings import get_registry
3841
from lancedb.pydantic import LanceModel, Vector
@@ -65,6 +68,7 @@ LanceDB handles embedding generation for both inserts and queries automatically,
6568

6669
`SIEReranker` plugs into LanceDB's hybrid search pipeline. It uses SIE's cross-encoder `score()` to rerank combined vector + full-text search results. You need a full-text search index on the column first:
6770

71+
```py Python icon=Python
6872
from sie_lancedb import SIEReranker
6973

7074
# Create FTS index for hybrid search
@@ -87,6 +91,7 @@ The reranker also works with pure vector or pure FTS search via `.rerank()`.
8791

8892
`SIEMultiVectorEmbeddingFunction` (registered as `"sie-multivector"`) works with LanceDB's native `MultiVector` type and MaxSim scoring for ColBERT and ColPali models:
8993

94+
```py Python icon=Python
9095
from lancedb.pydantic import MultiVector
9196

9297
sie_colbert = get_registry().get("sie-multivector").create(
@@ -109,7 +114,7 @@ results = table.search("What is ML?").limit(5).to_list()
109114

110115
`SIEExtractor` adds entity extraction to LanceDB's data-enrichment workflows. Extract entities from a text column and merge the results back as a structured Arrow column - enabling filtered search on extracted entities:
111116

112-
```python
117+
```py Python icon=Python
113118
from sie_lancedb import SIEExtractor
114119

115120
extractor = SIEExtractor(

docs/snippets/quickstart.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export const PyQuickstartVectorSearch1Async = "# Let's search for vectors simila
1818

1919
export const PyQuickstartVectorSearch2 = "# Let's search for vectors similar to \"wizard\"\nquery_vector = [0.7, 0.3, 0.5]\n\nresults = table.search(query_vector).limit(2).to_polars()\nprint(results)\n";
2020

21-
export const TsQuickstartOutputPandas = "result = await table.search(queryVector).limit(2).toArray();\n";
22-
2321
export const TsQuickstartAddData = "const moreData = [\n { id: \"7\", text: \"mage\", vector: [0.6, 0.3, 0.4] },\n { id: \"8\", text: \"bard\", vector: [0.3, 0.8, 0.4] },\n];\n\n// Add data to table\nawait table.add(moreData);\n";
2422

2523
export const TsQuickstartCreateTable = "const data = [\n { id: \"1\", text: \"knight\", vector: [0.9, 0.4, 0.8] },\n { id: \"2\", text: \"ranger\", vector: [0.8, 0.4, 0.7] },\n { id: \"9\", text: \"priest\", vector: [0.6, 0.2, 0.6] },\n { id: \"4\", text: \"rogue\", vector: [0.7, 0.4, 0.7] },\n];\nlet table = await db.createTable(\"adventurers\", data, { mode: \"overwrite\" });\n";

0 commit comments

Comments
 (0)