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
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 Distribution
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 generative_ai_qa-0.1.1.tar.gz.
File metadata
- Download URL: generative_ai_qa-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a1477ef383078cfdde585989f9b046de6cd94d3452edbbdb7a5429b7d93facc
|
|
| MD5 |
e75f2359adbf7a6bbf0deebe5c422bac
|
|
| BLAKE2b-256 |
407cf9995a2c73fbfa325b2e2136a227a36c92b3ccc3c65c19d9dde2b708a7b1
|
File details
Details for the file generative_ai_qa-0.1.1-py3-none-any.whl.
File metadata
- Download URL: generative_ai_qa-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e624821f3c922ea9c4ef00f4b1ba7fcd093c93d8247b0d8474dcdae5febf102e
|
|
| MD5 |
ef0d1cf875517ce27ba340a5668f1a58
|
|
| BLAKE2b-256 |
98723c31c5c32861bd3d9dc3535837c7fe31eecb15fc6f55d905c09848144cdf
|