Skip to main content

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:

  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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_embeddings-1.0.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file django_embeddings-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_embeddings-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49ef11ac7299f7f42a982ff725dd7ab8d27be7fed2f31aee090f57ec17d7e6ee
MD5 b0356e3e76c6aa04f705ea86b81a4991
BLAKE2b-256 0ca9bdf1ec58b02600eec088660316fe1943d4d5b54afaf05fc03a476324e5a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page