Question
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
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
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.)
4. Please create an MSWord document named
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started