davidmezzetti commited on
Commit
41b10c5
1 Parent(s): 09a2638
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. README.md +26 -0
  3. config.json +18 -0
  4. documents +3 -0
  5. embeddings +3 -0
.gitattributes CHANGED
@@ -32,3 +32,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ documents filter=lfs diff=lfs merge=lfs -text
36
+ embeddings filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,29 @@
1
  ---
 
 
2
  license: apache-2.0
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ inference: false
3
+ language: en
4
  license: apache-2.0
5
+ library_name: txtai
6
+ tags:
7
+ - sentence-similarity
8
  ---
9
+
10
+ # Introducing txtai model
11
+
12
+ This is a saved [txtai](https://github.com/neuml/txtai) embeddings index from the [Introducing txtai](https://colab.research.google.com/github/neuml/txtai/blob/master/examples/01_Introducing_txtai.ipynb) example notebook.
13
+
14
+ txtai must be [installed](https://neuml.github.io/txtai/install/) to use this model.
15
+
16
+ ## Example
17
+
18
+ Version 5.4 added support for loading embeddings indexes from the Hugging Face Hub. See the example below.
19
+
20
+ ```python
21
+ from txtai.embeddings import Embeddings
22
+
23
+ # Load the index from the HF Hub
24
+ embeddings = Embeddings()
25
+ embeddings.load(provider="huggingface-hub", container="NeuML/txtai-intro")
26
+
27
+ # Run a search
28
+ embeddings.search("Tell me a feel good story")
29
+ ```
config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "json",
3
+ "path": "sentence-transformers/nli-mpnet-base-v2",
4
+ "content": true,
5
+ "dimensions": 768,
6
+ "backend": "faiss",
7
+ "offset": 6,
8
+ "build": {
9
+ "create": "2023-02-16T21:50:20Z",
10
+ "python": "3.7.16",
11
+ "settings": {
12
+ "components": "IDMap,Flat"
13
+ },
14
+ "system": "Linux (x86_64)",
15
+ "txtai": "5.4.0"
16
+ },
17
+ "update": "2023-02-16T21:50:20Z"
18
+ }
documents ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d53249962e8c142842b577c5639bb0694d64647462cbb85ee29f019188b9bb8a
3
+ size 28672
embeddings ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85f580910c5592932bc95f4fda31b21053114271ff30d6e51430b91fe78ce31d
3
+ size 18570