Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

By utilizing Python language and relevant libraries, please create a functional python notebook code (ipynb) which provides the following functionality. Please name it _final.pynb A.

By utilizing Python language and relevant libraries, please create a functional python notebook code (ipynb) which provides the following functionality. Please name it _final.pynb A. Form 10-Q, is a quarterly report mandated by the United States federal Securities and Exchange Commission, to be filed by publicly traded corporations. The report provides an update on the company's financial performance. All of the public companies make their Form 10-Q available on their respective websites. Using OpenAI API and Langchain API, your code shall create an embedding from the last three FORM 10-Q pdf files of one of the following companies: Alphabet, Amazon, Apple, Meta, Microsoft, Nvidia and Tesla. Please note:

Student Name: _______________________________ 2 Each one of you need to choose only one company. Please do not mix reports from different companies. If the PDF files are too big, then you can reduce to two of one file(s). However, you need to explain why you ingested less than three PDFs. If the files are provided in a different format other than PDF ( e.g., MS word for Microsoft) , please convert the files into PDF format first and ingest. B. Your code shall store the embedding data into a vectorstore database Pinecone as a Pinecone index via Pinecone API. C. Your code shall demonstrate the capability of chatting with the contents of the chosen companys last three quarterly results and financial performances. II. Grade: Total: 20 III. Submission 1. Create a _final folder. 2. Take screen capture of your pineconde index in action in the pinecone website, similar to the following: (please make sure your name appears in the screen capture similar to mine on top left corner).

image text in transcribed 3. Execute your code and which includes 10 different questions and answers about the content of the PDF file (quarterly results and financial performances). Take a screen capture of all of your 10 questions and corresponding answers generated by your code.

Student Name: _______________________________ 3 (the images will be similar to the following but the contents are about quarterly results and financial performances; they will be 10 questions and answers; please make sure you have some questions are about comparing some results among the quarters.)

image text in transcribed 4. Please create an MSWord document named _ final.doc and paste all the images described at III. 2 and III.3 5. Place all the files (_final.ipynb, and (_final.doc into _final folder. 6. Compress _final folder and create zip a file named _final.zip 7. Upload _final.zip to final assignment on the class canvas.

Pinecone GA Default Proj... gheni.abla's D... Indexes Index Name Environment Metric Pod Pods per Total Replica Replicas Pods Actions Collections ga-custom-data ga-custom-data- 62f653c.svc.us-east4- Type Dimensions us-east4- gcp.pinecone.io cosine s1.x1 1536 1 1 1 - Ready gcp 1 Index Info v Metrics Organization ? Docs UPSERT QUERY UPDATE FETCH DELETE Help Desk 1 query = "What is the overall sentiment of Standford's 2023 -AI Index Report?" 2 docs = vectorstore.similarity_search (query) 3 chain.run (input_documents=docs, question=query) The overall sentiment of Standford's 2023 AI Index Report is positive. The report is an independent initiative at t he Stanford Institute for Human-Centered Artificial Intelligence (HAI) and is supplemented by raw data and an interac tive tool. The report also invites readers to use the data and the tool in a way most relevant to their work and inte rests, and welcomes feedback and new ideas for next year. 1 query = "Which country's citizen's the most positively about AI products and services" 2 docs = vectorstore.similarity_search (query) 3 chain.run (input_documents=docs, question=query) ' Chinese citizens

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Datacasting How To Stream Databases Over The Internet

Authors: Jessica Keyes

1st Edition

007034678X, 978-0070346789

More Books

Students also viewed these Databases questions