Skip to main content

Query documents quickly and efficiently

Project description

Docusearch

Welcome to Docusearch, the ultimate tool for document searching and processing using the power of vector embeddings. Follow the steps below to get started quickly!

Installation

First, you need to install the docusearch package using pip. Installation may take a minute or two. To avoid conflicts, it is recommend you use a virtual environment:

pip install docusearch

Usage

Step 1: Import the Module

After installing the package, import the process_query function from the docusearch module:

from docusearch import process_query

Step 2: Set the Parameters

Define the parameters for your query. You need to set your OpenAI API key, the path to the folder containing the documents, and the query for those documents

query = "What are some cool features of the Audi r8"
api_key = "your-openai-key"
folder_path = "path-to-your-folder"

Step 3: Call the Function and Print the Result

Now, call the process_query function with the parameters you set and print the result:

result = process_query(query, api_key, folder_path)
print(result)

Example

Here is the complete example code:

from docusearch import process_query

query = "What are some cool features of the Audi r8"
api_key = "your-openai-key"
folder_path = "path-to-your-folder"

result = process_query(query, api_key, folder_path)
print(result)

And that's it! You have successfully used the docusearch package to process your query. Enjoy searching your documents with ease!

Project details


Download files

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

Source Distribution

docusearch-0.1.7.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

docusearch-0.1.7-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file docusearch-0.1.7.tar.gz.

File metadata

  • Download URL: docusearch-0.1.7.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for docusearch-0.1.7.tar.gz
Algorithm Hash digest
SHA256 79133ac6421f7ecbe11720e1bb9d8c25bb73685f647d0139dc6afc0302ac6493
MD5 cb4771203f173ba42d271207707af4f1
BLAKE2b-256 a6cf4c0430e361ef837c5a3594dd1b215ac0efc2fa49fb67e5a7e9063c956f14

See more details on using hashes here.

File details

Details for the file docusearch-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: docusearch-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0rc1

File hashes

Hashes for docusearch-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6f4cd550b1cf6a9278a21d6d4d0ae2da98d24926c0653ee1703179d665c18885
MD5 1f26f304a44144f187b80c55840b5a6d
BLAKE2b-256 e39ded0e540229a4e3b92b09bd226f357d8c2f67784865a4e4be0429dec0dc19

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