mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-26 06:28:30 +02:00
mighty article
This commit is contained in:
@@ -24,7 +24,27 @@ We're always on the lookout for interesting services to combine with Qdrant to c
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
For mighty, we start up a [docker container](https://hub.docker.com/layers/maxdotio/mighty-sentence-transformers/0.9.9/images/sha256-0d92a89fbdc2c211d927f193c2d0d34470ecd963e8179798d8d391a4053f6caf?context=explore) with an open port 5050. We can check that it works by calling `curl https://<address>:5050/sentence-transformer?q=hello+mighty`. This will give us a result like (formatted via `jq`):
|
For mighty, we start up a [docker container](https://hub.docker.com/layers/maxdotio/mighty-sentence-transformers/0.9.9/images/sha256-0d92a89fbdc2c211d927f193c2d0d34470ecd963e8179798d8d391a4053f6caf?context=explore) with an open port 5050. Just loading the port in a window shows the following:
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"name": "sentence-transformers/all-MiniLM-L6-v2",
|
||||||
|
"architectures": [
|
||||||
|
"BertModel"
|
||||||
|
],
|
||||||
|
"model_type": "bert",
|
||||||
|
"max_position_embeddings": 512,
|
||||||
|
"labels": null,
|
||||||
|
"named_entities": null,
|
||||||
|
"image_size": null,
|
||||||
|
"source": "https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
We note that this uses huggingface's MiniLM-L6 v2 model. If we look at huggingface's site, we find that the model "maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search". Below, it tells us that the distance measure to use is cosine similarity.
|
||||||
|
|
||||||
|
We can check that it works by calling `curl https://<address>:5050/sentence-transformer?q=hello+mighty`. This will give us a result like (formatted via `jq`):
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@@ -33,7 +53,7 @@ For mighty, we start up a [docker container](https://hub.docker.com/layers/maxdo
|
|||||||
-0.05019686743617058,
|
-0.05019686743617058,
|
||||||
0.051746174693107605,
|
0.051746174693107605,
|
||||||
0.048117730766534805,
|
0.048117730766534805,
|
||||||
...
|
... (381 values skipped)
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"shape": [
|
"shape": [
|
||||||
@@ -79,8 +99,7 @@ pub async fn get_mighty_embedding(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let embeddings: Result<EmbeddingsResponse, _> = response.json().await?;
|
let embeddings: Result<EmbeddingsResponse, _> = response.json().await?;
|
||||||
|
Ok(embeddings[0]) // we ignore multiple embeddings at the moment
|
||||||
Ok(embeddings[0])
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,197 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||||
|
|
||||||
|
<svg
|
||||||
|
width="193.39125mm"
|
||||||
|
height="63.508564mm"
|
||||||
|
viewBox="0 0 193.39126 63.508564"
|
||||||
|
version="1.1"
|
||||||
|
id="svg22150"
|
||||||
|
inkscape:version="1.1.1 (1:1.1+202109281949+c3084ef5ed)"
|
||||||
|
sodipodi:docname="logo.svg"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="namedview22152"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pagecheckerboard="0"
|
||||||
|
inkscape:document-units="mm"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:zoom="0.7518799"
|
||||||
|
inkscape:cx="454.85988"
|
||||||
|
inkscape:cy="-12.634997"
|
||||||
|
inkscape:window-width="1848"
|
||||||
|
inkscape:window-height="1016"
|
||||||
|
inkscape:window-x="72"
|
||||||
|
inkscape:window-y="27"
|
||||||
|
inkscape:window-maximized="1"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
fit-margin-top="0"
|
||||||
|
fit-margin-left="0"
|
||||||
|
fit-margin-right="0"
|
||||||
|
fit-margin-bottom="0">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid183"
|
||||||
|
originx="7.4486223e-09"
|
||||||
|
originy="1.4439942e-08" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<defs
|
||||||
|
id="defs22147" />
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
transform="translate(-1.0423335,-9.9145705)">
|
||||||
|
<g
|
||||||
|
id="g1223-31"
|
||||||
|
transform="matrix(0.01266492,0,0,-0.01266492,-162.53993,241.30908)">
|
||||||
|
<g
|
||||||
|
id="g56-7"
|
||||||
|
transform="scale(1.05883)">
|
||||||
|
<path
|
||||||
|
d="m 16278.7,15847.1 21.3,16.2 v 208.1 l -71.8,41.4 -265.7,-224 316.2,-41.7"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path58-5" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g60-9"
|
||||||
|
transform="scale(1.07836)">
|
||||||
|
<path
|
||||||
|
d="m 13411.8,15806.2 -534,493.8 -421.2,-243.2 446.9,-400.1 -42.5,-407.1 818.4,-690 v -2086.9 l 93.4,-53.9 v 2577.8 l -361,622.5 v 187.1"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path62-6" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g64-2"
|
||||||
|
transform="scale(1.05883)">
|
||||||
|
<path
|
||||||
|
d="m 16300,15397.2 v 357.6 l -429.4,56.5 -1215,-1024.4 V 12754 l 86.6,50 v 1463.8 l 1508.7,1129.4 h 49.1"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path66-1" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g68-7"
|
||||||
|
transform="scale(1.05883)">
|
||||||
|
<path
|
||||||
|
d="m 16018.4,14910.2 281.6,-59.4 v 457.6 h -19.5 L 15235.2,14526 h 276 l 507.2,384.2"
|
||||||
|
style="fill:#40b93c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path70-8" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g72-5"
|
||||||
|
transform="scale(1.05924)">
|
||||||
|
<path
|
||||||
|
d="m 15444.1,15903.5 32.3,-309.5 663.8,559.8 -253.2,146.2 -442.9,-396.5"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path74-7" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g76-4"
|
||||||
|
transform="scale(1.11255)">
|
||||||
|
<path
|
||||||
|
d="m 14038.5,16146.7 -265.6,153.3 v -286 l 265.6,-238 v 370.7"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path78-1" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g80-8"
|
||||||
|
transform="scale(1.07836)">
|
||||||
|
<path
|
||||||
|
d="m 14209.6,12418.8 93.4,53.9 v 2086.9 l 818.4,690 -42.4,407.1 446.9,400.1 -421.2,243.2 -534.1,-493.8 v -187.1 l -361,-622.5 v -2577.8"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path82-5" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g84-9"
|
||||||
|
transform="scale(1.09876)">
|
||||||
|
<path
|
||||||
|
d="m 14300.1,16300 v -670.8 l 446.7,412.9 -446.7,257.9"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path86-7" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g88-5"
|
||||||
|
transform="scale(1.05883)">
|
||||||
|
<path
|
||||||
|
d="m 16039.7,14815 -498.6,-377.8 h -424.5 l -285.7,-213.9 v -1368.1 l 1469.1,848.2 v 1056.7 l -260.3,54.9"
|
||||||
|
style="fill:#80cc28;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path90-3" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
d="m 14471.7,15060.2 -302.5,226.4 h -449.3 l -528,400 -275.7,-58 v -1119 l 1555.5,-898 v 1448.6"
|
||||||
|
style="fill:#80cc28;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path92-8" />
|
||||||
|
<g
|
||||||
|
id="g94-8"
|
||||||
|
transform="scale(1.11255)">
|
||||||
|
<path
|
||||||
|
d="m 13349.6,16300 -265.4,-153.3 V 15776 l 265.4,238 v 286"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path96-3" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g98-1"
|
||||||
|
transform="scale(1.05924)">
|
||||||
|
<path
|
||||||
|
d="m 13043.5,15903.5 -443,396.5 -253.2,-146.2 663.9,-559.8 32.3,309.5"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path100-8" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g102-9"
|
||||||
|
transform="scale(1.12089)">
|
||||||
|
<path
|
||||||
|
d="m 13586.7,14450.2 347.3,598.8 v 496.9 l -347.3,311.4 v 369.8 l -126.4,72.9 -126.2,-72.9 v -369.8 l -347.3,-311.4 V 15049 l 347.3,-598.8 v -2551 l 126.2,-72.9 126.4,72.9 v 2551"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path104-6" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g106-4"
|
||||||
|
transform="scale(1.09876)">
|
||||||
|
<path
|
||||||
|
d="m 12716.2,16042.1 446.6,-412.9 v 670.8 l -446.6,-257.9"
|
||||||
|
style="fill:#1c6434;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path108-33" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g110-3"
|
||||||
|
transform="scale(1.02709)">
|
||||||
|
<path
|
||||||
|
d="m 14181.5,13199.7 89.3,-51.5 v 2095.7 l -1252.6,1056.1 -442.7,-58.3 V 15873 h 50.6 l 1555.4,-1164.3 v -1509"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path112-8" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
id="g114-6"
|
||||||
|
transform="scale(1.04668)">
|
||||||
|
<path
|
||||||
|
d="m 12340.2,16047.6 21.6,-16.4 319.9,42.1 -268.9,226.7 -72.6,-41.9 v -210.5"
|
||||||
|
style="fill:#27963c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path116-0" />
|
||||||
|
</g>
|
||||||
|
<path
|
||||||
|
d="m 13751.4,15380.6 h 292.3 l -1106.8,828.5 h -20.7 v -484.5 l 298.2,62.8 537,-406.8"
|
||||||
|
style="fill:#40b93c;fill-opacity:1;fill-rule:nonzero;stroke:none"
|
||||||
|
id="path118-4" />
|
||||||
|
</g>
|
||||||
|
<text
|
||||||
|
xml:space="preserve"
|
||||||
|
style="font-style:normal;font-weight:normal;font-size:39.4059px;line-height:1.25;font-family:sans-serif;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:0.985146"
|
||||||
|
x="65.297501"
|
||||||
|
y="53.674633"
|
||||||
|
id="text10302"
|
||||||
|
transform="scale(0.94293445,1.0605191)"><tspan
|
||||||
|
sodipodi:role="line"
|
||||||
|
id="tspan10300"
|
||||||
|
style="fill:#1a1a1a;stroke-width:0.985146"
|
||||||
|
x="65.297501"
|
||||||
|
y="53.674633">MAX.IO</tspan></text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.9 KiB |
Reference in New Issue
Block a user