automated-mcq-generator-using-langchain-openai-api's People
Forkers
suryakiran594 ansariparvej dineshkumar1239 rabinsth1111 devjayantaghosh azmd801 knaveen77 mohankhilariwal mukesh441 atharvakulkar deepashetty3 saravanapriyand sanketmganorkar123 sonalee88 pratik-kr maymach09 tomasmark0308 shivagur annamalai-subramani agobalan pragatigithub vinay-gautam81 gauripawar3102 polarispan tanveerahmedkhan chandangeek ramannkhanna2 paramasivanbarath blockchain-spark chandrakantnitt kabirrajsingh nageshmashette xiongxin ankushve pavalep jit2github hiltonusitrip malli13193 manishbishnoisingh piresh07 sandy4321 loopg sameerbhende wsk-khan tarunkumar111 ghislainbisamaza sahubabu cheangysautomated-mcq-generator-using-langchain-openai-api's Issues
Can't see code files in the repo
Hi Sunny,
First of all thank you for creating this amazing project on Generative AI! I have been following the iNeuron project and Krish for a while.
I wanted to bring to your attention that I do not see your open-source code for the following:
src/mcqgenerator/MCQGenerator.py
src/mcqgenerator/utils.py
Response.json
StreamlitAPP.py
Maybe there's a glitch and you may want to push the project files again.
Thanks and keep up the good work! :)
No code added src/mcqgenerator/MCQGenerator.py
The `streamlit` section is not committed
The streamlit
section is not committed
HuggingFaceHub version instead of OpenAI
@sunnysavita10, I tried creating a HuggingFaceHub version of this project - but after this call my response object does not have expected "quiz and review" values -
with get_openai_callback() as cb: response=generate_evaluate_chain_hf( { "text": TEXT, "number": NUMBER, "subject":SUBJECT, "tone": TONE, "response_json": json.dumps(RESPONSE_JSON) } )
{'text': 'The term machine learning was coined in 1959 by Arthur Samuel, an IBM employee and pioneer in the field of computer gaming and artificial intelligence.[9][10] The synonym self-teaching computers was also used in this time period.[11][12]\n\nAlthough the earliest machine learning model was introduced in the 1950s when Arthur Samuel invented a program that calculated the winning chance in checkers for each side, the history of machine learning roots back to decades of human desire and effort to study human cognitive processes.[13] In 1949, Canadian psychologist Donald Hebb published the book The Organization of Behavior, in which he introduced a theoretical neural structure formed by certain interactions among nerve cells.[14] Hebb\'s model of neurons interacting with one another set a groundwork for how AIs and machine learning algorithms work under nodes, or artificial neurons used by computers to communicate data.[13] Other researchers who have studied human cognitive systems contributed to the modern machine learning technologies as well, including logician Walter Pitts and Warren McCulloch, who proposed the early mathematical models of neural networks to come up with algorithms that mirror human thought processes.[13]\n\nBy the early 1960s an experimental "learning machine" with punched tape memory, called Cybertron, had been developed by Raytheon Company to analyze sonar signals, electrocardiograms, and speech patterns using rudimentary reinforcement learning. It was repetitively "trained" by a human operator/teacher to recognize patterns and equipped with a "goof" button to cause it to re-evaluate incorrect decisions.[15] A representative book on research into machine learning during the 1960s was Nilsson\'s book on Learning Machines, dealing mostly with machine learning for pattern classification.[16] Interest related to pattern recognition continued into the 1970s, as described by Duda and Hart in 1973.[17] In 1981 a report was given on using teaching strategies so that an artificial neural network learns to recognize 40 characters (26 letters, 10 digits, and 4 special symbols) from a computer terminal.[18]\n', 'number': 5, 'subject': 'machine learning', 'tone': 'simple', 'response_json': '{"1": {"mcq": "multiple choice question", "options": {"a": "choice here", "b": "choice here", "c": "choice here", "d": "choice here"}, "correct": "correct answer"}, "2": {"mcq": "multiple choice question", "options": {"a": "choice here", "b": "choice here", "c": "choice here", "d": "choice here"}, "correct": "correct answer"}, "3": {"mcq": "multiple choice question", "options": {"a": "choice here", "b": "choice here", "c": "choice here", "d": "choice here"}, "correct": "correct answer"}}', 'quiz': '"1": "mcq": "multiple', 'review': '"1": "mcq": "multiple'}
json.dumps(quiz) prints '"\"1\": \"mcq\": \"multiple"'
later the parsing fails.
Also I am not sure if the call went through
print(f"Total tokens: {cb.total_tokens}") print(f"Prompt tokens: {cb.prompt_tokens}") print(f"Completion tokens: {cb.completion_tokens}") print(f"Total cost: {cb.total_cost}")
outputs
Total tokens: 0 Prompt tokens: 0 Completion tokens: 0 Total cost: 0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.