creatext-io / frontend

frontend-scrible.vercel.app
0 stars 0 forks source link

Test payload for search API #1

Open tausif3 opened 1 year ago

tausif3 commented 1 year ago

This is a test payload to play with search API and see how it works.

Example

Request payload :- { "query": "Wheo were steve jobs parents?", "text": "Steven Paul Jobs (February 24, 1955 – October 5, 2011) was an American entrepreneur, industrial designer, business magnate, media proprietor, and investor. He was the co-founder, chairman, and CEO of Apple; the chairman and majority shareholder of Pixar; a member of The Walt Disney Company's board of directors following its acquisition of Pixar; and the founder, chairman, and CEO of NeXT.\nHe is widely recognized as a pioneer of the personal computer revolution of the 1970s and 1980s, along with his early business partner and fellow Apple co-founder Steve Wozniak.\nJobs was born in San Francisco to a Syrian father and German-American mother. He was adopted shortly after his birth. Jobs attended Reed College in 1972 before withdrawing that same year. In 1974, he traveled through India seeking enlightenment before later studying Zen Buddhism. He and Wozniak co-founded Apple in 1976 to sell Wozniak's Apple I personal computer.\nSchieble became pregnant with Jobs in 1954, when she and Jandali spent the summer with his family in Homs. According to Jandali, Schieble deliberately did not involve him in the process:Without telling me, Joanne upped and left to move to San Francisco to have the baby without anyone knowing, including me." }


Response payload :- { "message": "successful", "search_results": { "0": { "doc": "Steven Paul Jobs (February 24, 1955 – October 5, 2011) was an American entrepreneur, industrial designer, business magnate, media proprietor, and investor. He was the co-founder, chairman, and CEO of Apple; the chairman and majority shareholder of Pixar; a member of The Walt Disney Company's board of directors following its acquisition of Pixar; and the founder, chairman, and CEO of NeXT.", "relevance_score": 0.9931882619857788 }, "1": { "doc": "He is widely recognized as a pioneer of the personal computer revolution of the 1970s and 1980s, along with his early business partner and fellow Apple co-founder Steve Wozniak.", "relevance_score": 1.109204649925232 }, "2": { "doc": "Jobs was born in San Francisco to a Syrian father and German-American mother. He was adopted shortly after his birth. Jobs attended Reed College in 1972 before withdrawing that same year. In 1974, he traveled through India seeking enlightenment before later studying Zen Buddhism. He and Wozniak co-founded Apple in 1976 to sell Wozniak's Apple I personal computer.", "relevance_score": 0.9471592307090759 }, "3": { "doc": "Schieble became pregnant with Jobs in 1954, when she and Jandali spent the summer with his family in Homs. According to Jandali, Schieble deliberately did not involve him in the process:Without telling me, Joanne upped and left to move to San Francisco to have the baby without anyone knowing, including me.", "relevance_score": 1.0536812543869019 } } }

tausif3 commented 1 year ago

@arjunbharti Bro ye dekhna.