Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated labeler and readme #389

Merged
merged 57 commits into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
1e98d90
created project
nickprock Feb 8, 2024
ab89dc8
added parallel param
nickprock Feb 8, 2024
4dae714
updated test
nickprock Feb 8, 2024
1c6d4e8
version 0.0.1
nickprock Feb 8, 2024
551db0c
renamed folder
nickprock Feb 8, 2024
4ccac33
Merge branch 'main' into dev/fastembed
nickprock Feb 8, 2024
a0c7a6e
removed print
nickprock Feb 8, 2024
88a9282
updated readme
nickprock Feb 8, 2024
7153197
Merge branch 'dev/fastembed' of https://github.com/nickprock/haystack…
nickprock Feb 8, 2024
547728b
Merge branch 'main' into dev/fastembed
nickprock Feb 8, 2024
a73146f
added fastembed.yml
nickprock Feb 8, 2024
ead43ed
Merge branch 'dev/fastembed' of https://github.com/nickprock/haystack…
nickprock Feb 8, 2024
54565b7
fix typos
nickprock Feb 8, 2024
f68a310
python version to 3.9 for lint
nickprock Feb 8, 2024
cbba970
updated file
nickprock Feb 8, 2024
2a08cbe
force install black
nickprock Feb 8, 2024
2fccaf6
return to original file
nickprock Feb 8, 2024
afd4645
try to fix workflow
anakin87 Feb 8, 2024
2e01f32
retry
anakin87 Feb 8, 2024
d357330
add missing info to pyproject
anakin87 Feb 8, 2024
174c51b
add hatch-vcs to check version
anakin87 Feb 8, 2024
c9eadfa
Update pyproject.toml
anakin87 Feb 8, 2024
bba17ae
fixed typos
nickprock Feb 8, 2024
d91f449
removed python 3.9
nickprock Feb 8, 2024
eee09c3
Update fastembed.yml
nickprock Feb 9, 2024
2355aa3
Update fastembed_document_embedder.py
nickprock Feb 9, 2024
c31bb3b
Update fastembed_text_embedder.py
nickprock Feb 9, 2024
ba5cb28
ignore errors for bool arguments
anakin87 Feb 9, 2024
3e0c1fe
fix
anakin87 Feb 9, 2024
abe8a97
try moving noqa
anakin87 Feb 9, 2024
27a339c
move noqa
anakin87 Feb 9, 2024
2d5ad0a
formatted with black
nickprock Feb 9, 2024
79a5f9f
added numpy dependency
nickprock Feb 10, 2024
fb2bd05
removed numpy
nickprock Feb 10, 2024
d93092b
Merge branch 'dev/fastembed' of https://github.com/nickprock/haystack…
nickprock Feb 10, 2024
690659c
removed numpy
nickprock Feb 10, 2024
4bbb169
make mypy happy
anakin87 Feb 10, 2024
d9ae567
Update fastembed_backend.py
anakin87 Feb 10, 2024
87e3fe7
removed classvar
nickprock Feb 10, 2024
668572c
fix
nickprock Feb 10, 2024
206b842
Update pyproject.toml
anakin87 Feb 10, 2024
5c144d6
added import numpy lint
nickprock Feb 10, 2024
4c1f98b
Merge branch 'dev/fastembed' of https://github.com/nickprock/haystack…
nickprock Feb 10, 2024
070f04d
skip docs generation for the time being
anakin87 Feb 10, 2024
2842ff9
Update README.md
anakin87 Feb 10, 2024
a7bf308
added config.yml
nickprock Feb 10, 2024
8ca6daf
Merge branch 'dev/fastembed' of https://github.com/nickprock/haystack…
nickprock Feb 10, 2024
673e3e7
generate docs
nickprock Feb 10, 2024
e73d719
Update fastembed.yml
anakin87 Feb 10, 2024
9d79e1c
Update config.yml
anakin87 Feb 10, 2024
4d46161
rm unnecessary from_dict
anakin87 Feb 10, 2024
c5980d3
final touch
anakin87 Feb 10, 2024
8dd145e
updated labeler.yml
nickprock Feb 11, 2024
f0bb7d9
updated library readme
nickprock Feb 11, 2024
76e88c7
Merge branch 'main' into dev/fastembed
anakin87 Feb 11, 2024
0847181
fix typos
anakin87 Feb 11, 2024
37a6aaf
fix docstrings/README
anakin87 Feb 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ integration:elasticsearch:
- any-glob-to-any-file: "integrations/elasticsearch/**/*"
- any-glob-to-any-file: ".github/workflows/elasticsearch.yml"

integration:fastembed:
- changed-files:
- any-glob-to-any-file: "integrations/fastembed/**/*"
- any-glob-to-any-file: ".github/workflows/fastembed.yml"

integration:google-ai:
- changed-files:
- any-glob-to-any-file: "integrations/google_ai/**/*"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ deepset-haystack
| [cohere-haystack](integrations/cohere/) | Embedder, Generator | [![PyPI - Version](https://img.shields.io/pypi/v/cohere-haystack.svg)](https://pypi.org/project/cohere-haystack) | [![Test / cohere](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/cohere.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/cohere.yml) |
| [deepeval-haystack](integrations/deepeval/) | Evaluator | [![PyPI - Version](https://img.shields.io/pypi/v/deepeval-haystack.svg)](https://pypi.org/project/deepeval-haystack) | [![Test / deepeval](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/deepeval.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/deepeval.yml) |
| [elasticsearch-haystack](integrations/elasticsearch/) | Document Store | [![PyPI - Version](https://img.shields.io/pypi/v/elasticsearch-haystack.svg)](https://pypi.org/project/elasticsearch-haystack) | [![Test / elasticsearch](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/elasticsearch.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/elasticsearch.yml) |
| [fastembed-haystack](integrations/fastembed/) | Embedder | [![PyPI - Version](https://img.shields.io/pypi/v/fastembed-haystack.svg)](https://pypi.org/project/fastembed-haystack/) | [![Test / fastembed](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/fastembed.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/fastembed.yml) |
| [google-ai-haystack](integrations/google_ai/) | Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-ai-haystack.svg)](https://pypi.org/project/google-ai-haystack) | [![Test / google-ai](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_ai.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_ai.yml) |
| [google-vertex-haystack](integrations/google_vertex/) | Generator | [![PyPI - Version](https://img.shields.io/pypi/v/google-vertex-haystack.svg)](https://pypi.org/project/google-vertex-haystack) | [![Test / google-vertex](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_vertex.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/google_vertex.yml) |
| [gradient-haystack](integrations/gradient/) | Embedder, Generator | [![PyPI - Version](https://img.shields.io/pypi/v/gradient-haystack.svg)](https://pypi.org/project/gradient-haystack) | [![Test / gradient](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/gradient.yml/badge.svg)](https://github.com/deepset-ai/haystack-core-integrations/actions/workflows/gradient.yml) |
Expand Down
7 changes: 4 additions & 3 deletions integrations/fastembed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ pip install fastembed-haystack
You can use `FastembedTextEmbedder` and `FastembedDocumentEmbedder` by importing as:

```python
from fastembed_haystack.fastembed_text_embedder import FastembedTextEmbedder
from haystack_integrations.components.embedders.fastembed import FastembedTextEmbedder

text = "fastembed is supported by and maintained by Qdrant."
text_embedder = FastembedTextEmbedder(
model="BAAI/bge-small-en-v1.5"
)
embedding = text_embedder.run(text)
text_embedder.warm_up()
embedding = text_embedder.run(text)["embedding"]
```

```python
from fastembed_haystack.fastembed__document_embedder import FastembedDocumentEmbedder
from haystack_integrations.components.embedders.fastembed import FastembedDocumentEmbedder
from haystack.dataclasses import Document

embedder = FastembedDocumentEmbedder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FastembedDocumentEmbedder:
# To use this component, install the "fastembed-haystack" package.
# pip install fastembed-haystack

from fastembed_haystack.fastembed__document_embedder import FastembedDocumentEmbedder
from haystack_integrations.components.embedders.fastembed import FastembedDocumentEmbedder
from haystack.dataclasses import Document

doc_embedder = FastembedDocumentEmbedder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ class FastembedTextEmbedder:

Usage example:
```python
# To use this component, install the "fastembed" package.
# pip install fastembed
# To use this component, install the "fastembed-haystack" package.
# pip install fastembed-haystack

from fastembed_haystack.fastembed_text_embedder import FastembedTextEmbedder
from haystack_integrations.components.embedders.fastembed import FastembedTextEmbedder

text = "It clearly says online this will work on a Mac OS system. The disk comes and it does not, only Windows. Do Not order this if you have a Mac!!"

text_embedder = FastembedTextEmbedder(
model="BAAI/bge-small-en-v1.5"
)
text_embedder.warm_up()

embedding = text_embedder.run(text)
embedding = text_embedder.run(text)["embedding"]
```
""" # noqa: E501

Expand Down