puzan789 commited on
Commit
5e7e5e8
·
1 Parent(s): 2214088
Files changed (3) hide show
  1. README.md +19 -73
  2. dia.png +0 -0
  3. recipe_dataset.csv +0 -50
README.md CHANGED
@@ -1,73 +1,19 @@
1
-
2
- # RAG-Based QA System For Recipe
3
-
4
- ## Setup
5
-
6
- To install dependencies, use `uv`. First, install `uv` if you haven’t already:
7
-
8
- ### Ubuntu/Linux:
9
- ```bash
10
- curl -LsSf https://astral.sh/uv/install.sh | sh
11
- ````
12
-
13
- ### Windows (PowerShell):
14
-
15
- ```powershell
16
- irm https://astral.sh/uv/install.ps1 | iex
17
- ```
18
-
19
- Then, install dependencies:
20
-
21
- ```bash
22
- uv sync
23
- ```
24
-
25
- ## Vector Store: Qdrant
26
-
27
- This project uses **Qdrant** as a vector store.
28
-
29
- You can run it locally using Docker:
30
-
31
- ```bash
32
- docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
33
- ```
34
-
35
- Or use **Qdrant Cloud**, which is already set up in this project.
36
-
37
- To create your own cloud instance, go to: [https://qdrant.tech](https://qdrant.tech)
38
-
39
- ## LLM: ChatGroq
40
-
41
- This project uses **ChatGroq**.
42
-
43
- Set the following environment variables:
44
-
45
- ```env
46
- GROQ_API_KEY=your_groq_api_key
47
- QDRANT_URL=your_qdrant_cloud_url
48
- QDRANT_API_KEY=your_qdrant_api_key
49
- ```
50
-
51
- ## Run the App
52
-
53
- To run the project:
54
-
55
- ```bash
56
- streamlit run app.py
57
- ```
58
-
59
- ## Flow Diagram
60
- ![alt text](dia.png)
61
-
62
-
63
- ## Todo
64
-
65
- - [ ] **Create API with FastAPI**
66
- - Set up FastAPI endpoints for question answering.
67
-
68
- - [ ] **Implement Reranking Strategy for Retrieval**
69
- - Add a reranking approach to improve document relevance.
70
-
71
- - [ ] **Add Pre-Rephrasing Strategy**
72
- - Rephrase user questions before querying Qdrant.
73
-
 
1
+ ---
2
+ title: portlae
3
+ emoji: 🚀
4
+ colorFrom: red
5
+ colorTo: red
6
+ sdk: docker
7
+ app_port: 8501
8
+ tags:
9
+ - streamlit
10
+ pinned: false
11
+ short_description: Streamlit template space
12
+ ---
13
+
14
+ # Welcome to Streamlit!
15
+
16
+ Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
17
+
18
+ If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
19
+ forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dia.png DELETED
Binary file (64.2 kB)
 
recipe_dataset.csv DELETED
@@ -1,50 +0,0 @@
1
- dish_name,ingredients,instructions
2
- "Spaghetti Carbonara","spaghetti, eggs, parmesan cheese, bacon, black pepper","Boil pasta until al dente. Fry bacon until crispy. Beat eggs and mix with grated parmesan. Combine pasta with bacon and egg mixture. Season with pepper and serve hot."
3
- "Chicken Curry","chicken, onion, tomato, garlic, ginger, curry powder, salt, oil","Heat oil in a pan. Sauté onions, garlic, and ginger. Add tomatoes and cook down. Add chicken and curry powder. Simmer until chicken is cooked through. Serve with rice."
4
- "Grilled Cheese Sandwich","bread slices, cheddar cheese, butter","Butter the bread slices. Place cheese between two slices. Grill on a pan until golden brown and cheese melts."
5
- "Pancakes","flour, milk, eggs, sugar, baking powder, salt, butter","Mix dry ingredients. Whisk in milk and eggs. Heat butter in a pan and pour batter. Cook until bubbles form, flip and cook the other side."
6
- "Fried Rice","rice, mixed vegetables, soy sauce, garlic, egg, oil","Cook rice and let it cool. Scramble egg in a pan. Stir-fry garlic and vegetables. Add rice, soy sauce, and mix well."
7
- "Tomato Soup","tomatoes, onion, garlic, vegetable broth, cream, salt, pepper","Sauté onion and garlic. Add chopped tomatoes and broth. Simmer and blend. Add cream and season before serving."
8
- "Caesar Salad","lettuce, croutons, parmesan, Caesar dressing, chicken (optional)","Chop lettuce and toss with croutons and grated parmesan. Add dressing and grilled chicken if desired."
9
- "French Toast","bread slices, eggs, milk, cinnamon, sugar, butter","Whisk eggs, milk, sugar, and cinnamon. Dip bread slices. Fry on buttered pan until golden brown."
10
- "Veggie Stir Fry","mixed vegetables, soy sauce, garlic, ginger, oil, salt","Heat oil. Add garlic and ginger. Stir-fry veggies. Add soy sauce and cook until tender."
11
- "Beef Tacos","ground beef, taco shells, onion, tomato, lettuce, cheese, taco seasoning","Cook beef with taco seasoning. Fill taco shells with beef, chopped veggies, and cheese."
12
- "Mashed Potatoes","potatoes, butter, milk, salt, pepper","Boil potatoes until soft. Mash with butter and milk. Season with salt and pepper."
13
- "Omelette","eggs, onion, tomato, cheese, salt, pepper, oil","Whisk eggs with salt and pepper. Pour into pan. Add chopped veggies and cheese. Cook until firm."
14
- "Chocolate Chip Cookies","flour, sugar, butter, eggs, chocolate chips, vanilla extract, baking soda","Cream butter and sugar. Mix in eggs and vanilla. Add dry ingredients and chips. Scoop and bake until golden."
15
- "Mac and Cheese","macaroni, cheddar cheese, milk, butter, flour, salt","Cook macaroni. Make cheese sauce with butter, flour, milk, and cheese. Mix with pasta and bake if desired."
16
- "Banana Bread","ripe bananas, flour, sugar, eggs, butter, baking soda","Mash bananas. Mix with sugar, eggs, and butter. Add flour and baking soda. Pour into loaf pan and bake."
17
- "Veggie Burger","burger buns, veggie patties, lettuce, tomato, onion, cheese, sauce","Cook patties. Assemble burgers with veggies, cheese, and sauce in buns."
18
- "Butter Chicken","chicken, tomato puree, cream, butter, spices, garlic, ginger","Marinate chicken in spices. Cook in butter, add tomato puree and cream. Simmer until rich."
19
- "Garlic Bread","baguette, garlic, butter, parsley, salt","Mix garlic with butter and parsley. Spread on bread. Bake until golden and crisp."
20
- "Stir Fry Noodles","noodles, vegetables, soy sauce, garlic, oil","Boil noodles. Stir-fry garlic and vegetables. Add noodles and soy sauce. Toss well."
21
- "Chili","ground beef, beans, tomatoes, chili powder, onion, garlic, salt","Cook beef with onion and garlic. Add beans, tomatoes, and chili powder. Simmer until thick."
22
- "Egg Fried Rice","rice, egg, green onion, soy sauce, garlic, oil","Scramble egg in a pan. Add cooked rice, garlic, soy sauce, and green onions. Stir-fry well."
23
- "Margarita Pizza","pizza dough, tomato sauce, mozzarella, basil, olive oil","Spread sauce on dough. Top with mozzarella and basil. Bake until cheese melts."
24
- "Tuna Sandwich","bread, canned tuna, mayonnaise, lettuce, tomato, salt","Mix tuna with mayo. Layer with lettuce and tomato in bread slices."
25
- "Greek Salad","tomato, cucumber, feta, olives, red onion, olive oil","Chop vegetables. Toss with feta, olives, and olive oil."
26
- "Chicken Biryani","chicken, basmati rice, yogurt, onion, spices, saffron","Marinate chicken. Cook with onions and spices. Layer with rice and saffron. Steam until done."
27
- "Caprese Salad","mozzarella, tomato, basil, olive oil, balsamic vinegar","Slice mozzarella and tomatoes. Layer with basil. Drizzle with oil and vinegar."
28
- "Stuffed Bell Peppers","bell peppers, rice, ground beef, onion, tomato sauce, cheese","Stuff bell peppers with cooked beef and rice. Top with sauce and cheese. Bake until tender."
29
- "Fish Tacos","fish fillets, taco shells, cabbage, lime, mayonnaise","Cook fish. Assemble tacos with shredded cabbage and lime mayo sauce."
30
- "Chicken Alfredo","fettuccine, chicken, cream, parmesan, garlic, butter","Cook pasta. Sauté chicken with garlic. Add cream and parmesan. Combine with pasta."
31
- "Avocado Toast","bread, avocado, lemon juice, chili flakes, salt","Mash avocado with lemon juice and salt. Spread on toasted bread. Sprinkle chili flakes."
32
- "Vegetable Soup","mixed vegetables, broth, onion, garlic, herbs, salt","Sauté onion and garlic. Add veggies and broth. Simmer with herbs until tender."
33
- "BBQ Chicken Wings","chicken wings, BBQ sauce, garlic, salt, pepper","Marinate wings. Bake or grill while brushing with BBQ sauce."
34
- "Ramen","ramen noodles, broth, boiled egg, green onion, soy sauce","Cook noodles in broth. Add egg and soy sauce. Garnish with green onions."
35
- "Mango Smoothie","mango, yogurt, milk, honey, ice","Blend mango with yogurt, milk, and honey until smooth. Serve cold."
36
- "Egg Salad","eggs, mayonnaise, mustard, salt, pepper","Boil and chop eggs. Mix with mayo, mustard, salt, and pepper."
37
- "Tiramisu","ladyfingers, mascarpone, coffee, cocoa powder, sugar","Layer soaked ladyfingers with mascarpone cream. Dust with cocoa powder. Chill and serve."
38
- "Shrimp Scampi","shrimp, garlic, butter, lemon juice, spaghetti","Sauté garlic in butter. Add shrimp and lemon juice. Toss with cooked spaghetti."
39
- "Falafel Wrap","falafel, pita bread, lettuce, tomato, tahini sauce","Place falafel in pita. Add veggies and drizzle tahini sauce."
40
- "Peanut Butter Cookies","peanut butter, sugar, eggs, baking soda","Mix ingredients. Shape into cookies and bake until golden."
41
- "Eggplant Parmesan","eggplant, marinara sauce, mozzarella, parmesan, breadcrumbs","Bread and fry eggplant. Layer with sauce and cheese. Bake until bubbly."
42
- "Shepherd’s Pie","ground lamb, mashed potatoes, peas, carrots, onion","Cook meat with vegetables. Top with mashed potatoes. Bake until golden."
43
- "Apple Pie","apples, flour, butter, sugar, cinnamon","Make filling with apples and cinnamon. Place in crust and bake until golden."
44
- "Chicken Nuggets","chicken breast, flour, egg, breadcrumbs, salt","Coat chicken in flour, egg, and breadcrumbs. Fry until golden brown."
45
- "Zucchini Fritters","zucchini, flour, egg, garlic, salt, pepper","Grate zucchini and mix with ingredients. Fry spoonfuls in oil until crisp."
46
- "Beef Stroganoff","beef, onion, mushroom, sour cream, egg noodles","Sauté beef and veggies. Stir in sour cream. Serve over cooked noodles."
47
- "Berry Parfait","yogurt, berries, granola, honey","Layer yogurt with berries and granola. Drizzle honey on top."
48
- "French Crepes","flour, milk, eggs, sugar, butter","Whisk ingredients. Cook thin crepes in buttered pan. Fill as desired."
49
- "Tofu Stir Fry","tofu, vegetables, soy sauce, garlic, ginger, oil","Cook tofu until golden. Stir-fry with veggies and sauce."
50
- "Chana Masala","chickpeas, tomato, onion, garlic, ginger, spices","Sauté onion, garlic, and ginger. Add tomatoes and spices. Stir in chickpeas and simmer."