A Django application for embeddings
Project description
Django Embeddings
Installation
pip install django-embeddings
Usage
Add django_embeddings to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
# ...existing apps...
'django_embeddings',
]
Settings
Configure any necessary settings in settings.py:
DJANGO_EMBEDDINGS_SETTING = 'value'
Examples
# Example usage of the app
Using the Similar Pages API
To use the similar-pages API, follow these steps:
-
Start the Django server:
docker-compose up -
Open your browser and navigate to
http://localhost:8000/similar-pages/. -
Enter a URL in the input field and click the "Search" button to find similar pages.
The API endpoint for similar pages is available at:
GET /api/v1/similar-pages/?url=<URL>
Example:
GET http://localhost:8000/api/v1/similar-pages/?url=https://www.example.com/
This will return a JSON response with a list of similar pages and their details.
Running Tests
Run the tests using Django's test framework:
python manage.py test django_embeddings
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_embeddings-1.0.0-py3-none-any.whl.
File metadata
- Download URL: django_embeddings-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49ef11ac7299f7f42a982ff725dd7ab8d27be7fed2f31aee090f57ec17d7e6ee
|
|
| MD5 |
b0356e3e76c6aa04f705ea86b81a4991
|
|
| BLAKE2b-256 |
0ca9bdf1ec58b02600eec088660316fe1943d4d5b54afaf05fc03a476324e5a6
|