Skip to content

A notebook to help you get started with file uploads and working with the openai API.

Notifications You must be signed in to change notification settings

neilshevlin/openai-example-notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Uploads Open AI

This is a very simple jupyter notebook for using the openai API. It uses file uploads and asks questions to your uploaded documents from the API.

Required

  • Jupyter
  • openai library
  • Python 3^
    pip install openai

To run the example provided

  1. First start by running the notebook 'Text To Jsonl'
  2. Run either methods in the notebook 'convertByLine()' or 'convertByFullStop()'
  3. This converts the example text file provided in to jsonl format.
  4. Run Upload notebook to upload the json lines document previously converted.
  5. Run the Questions file which will ask a sample question of the document you have just uploaded

About

A notebook to help you get started with file uploads and working with the openai API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published