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

update docs: theme, text embeddings, used-by #447

Merged
merged 9 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
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
12 changes: 10 additions & 2 deletions docs/tutorial-epsilla.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Text embedding
Tutorial: Text embedding
===============
adbar marked this conversation as resolved.
Show resolved Hide resolved

.. meta::
Expand Down Expand Up @@ -28,7 +28,11 @@ In this tutorial, we will show you how to perform text embedding on results from
Setup Epsilla
------------------------------------------------

In this tutorial, we will run an Epsilla databse server. You can start one locally with a `Docker <https://docs.docker.com/get-started/>`_ image.
In this tutorial, we will need an Epsilla databse server. There are two ways to get one: use the free cloud version or start one locally.

adbar marked this conversation as resolved.
Show resolved Hide resolved
Epsill has a `cloud version <https://cloud.epsilla.com//?ref=trafilatura>`_ with a free tier. You can sign up and get a server running in a few steps.

adbar marked this conversation as resolved.
Show resolved Hide resolved
Alternatively, you can start one locally with a `Docker <https://docs.docker.com/get-started/>`_ image.

.. code-block:: bash

Expand All @@ -37,6 +41,8 @@ In this tutorial, we will run an Epsilla databse server. You can start one local

See `Epsilla documentation <https://epsilla-inc.gitbook.io/epsilladb/quick-start>`_ for a full quick start guide.

The rest of this guide assumes you are running a local Epsilla server on port 8888. If you are using the cloud version, replace the host and port with the cloud server address.

We need to install the database client. You can do this with pip:

.. code-block:: bash
Expand Down Expand Up @@ -145,5 +151,7 @@ We can now perform a vector search to find the most relevant project based on a

You will see the returned response is React! That is the correct answer. React is a modern frontend library, but PyTorch and Tensorflow are not.

.. image:: https://static.scarf.sh/a.png?x-pxid=51f549d1-aabf-473c-b971-f8d9c3ac8ac5
:alt:
adbar marked this conversation as resolved.
Show resolved Hide resolved


4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_long_description():
"brotli",
"cchardet >= 2.1.7; python_version < '3.11'", # build issue
"faust-cchardet >= 2.1.18; python_version >= '3.11'", # fix for build
"htmldate[speed] >= 1.5.1",
"htmldate[speed] >= 1.6.0",
"py3langid >= 0.2.2",
"pycurl >= 7.45.2",
],
Expand Down Expand Up @@ -112,7 +112,7 @@ def get_long_description():
"charset_normalizer >= 3.0.1; python_version < '3.7'",
"charset_normalizer >= 3.2.0; python_version >= '3.7'",
"courlan >= 0.9.4",
"htmldate >= 1.5.1",
"htmldate >= 1.6.0",
"justext >= 3.0.0",
"lxml >= 4.9.3 ; platform_system != 'Darwin'",
"lxml == 4.9.2 ; platform_system == 'Darwin'",
Expand Down
3 changes: 2 additions & 1 deletion tests/metadata_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ def test_dates():
mystring = '<html><body><p>Veröffentlicht am 1.9.17</p></body></html>'
metadata = extract_metadata(mystring, fastmode=False)
assert metadata.date == '2017-09-01'
# behavior for fastmode=True changed in htmldate==1.6.0. On 1.5.2 and earlier, result was None
metadata = extract_metadata(mystring, fastmode=True)
assert metadata.date is None
assert metadata.date == '2017-09-01'


def test_sitename():
Expand Down
Loading