Skip to main content

A Python package for question answering using Google Generative AI.

Project description

Generative AI QA

A Python package for question answering using Google Generative AI.

Installation

Install the package using pip:

pip install generative_ai_qa

from generative_ai_qa import GenerativeAIQuestionAnswering

api_key = "YOUR_API_KEY"
model_name = "gemini-1.5-flash"
file_path = "data1.txt"

ai_qa = GenerativeAIQuestionAnswering(api_key, model_name, file_path)
ai_qa.load_data_from_file()
session_id = ai_qa.create_session()
ai_qa.ask_questions(session_id)

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

generative_ai_qa-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

generative_ai_qa-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file generative_ai_qa-0.1.0.tar.gz.

File metadata

  • Download URL: generative_ai_qa-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for generative_ai_qa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 949076eeccb7c27ce9be1fa90ca7508c2456160cdf1a3c7390fd70082ed617b4
MD5 c94a79252323f60da4c87849b08f4de7
BLAKE2b-256 4f8042814805dabb3edcc66d7e81503ff25402b7d652de637e753e594178cbcd

See more details on using hashes here.

File details

Details for the file generative_ai_qa-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generative_ai_qa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f10d598d7273a6a4c606879061120b560cdae49ae8f28a406907288b67215c71
MD5 df7c20b26938b55c9b6b2ead27fa7bb2
BLAKE2b-256 46dc8699ffb84f0a86aea05659145a6d0d5c842bbaf5644b353f9d79955c4484

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