Skip to main content

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:

  1. Start the Django server:

    docker-compose up
    
  2. Open your browser and navigate to http://localhost:8000/similar-pages/.

  3. 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

Metadata

Release files for django-embeddings 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-embeddings 1.0.0
File Interpreter ABI Platform
django_embeddings-1.0.0-py3-none-any.whl Python 3 none any Details

Release files / django_embeddings-1.0.0-py3-none-any.whl

Download URL django_embeddings-1.0.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49ef11ac7299f7f42a982ff725dd7ab8d27be7fed2f31aee090f57ec17d7e6ee
BLAKE2b-256 checksum
How to use checksums
0ca9bdf1ec58b02600eec088660316fe1943d4d5b54afaf05fc03a476324e5a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page