feat: add olostep support chatbot example#1140
feat: add olostep support chatbot example#1140aadithyanr wants to merge 1 commit intojulep-ai:devfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
❌ Changes requested. Reviewed everything up to 6d02c82 in 3 minutes and 26 seconds
More details
- Looked at
443lines of code in1files - Skipped
0files when reviewing. - Skipped posting
4drafted comments based on config settings.
1. cookbooks/08_customer_support_chatbot_olostep.py:16
- Draft comment:
load_dotenv is imported but never called. Ensure you call load_dotenv() so that environment variables (JULEP_API_KEY and OLOSTEP_API_KEY) are properly loaded. - Reason this comment was not posted:
Marked as duplicate.
2. cookbooks/08_customer_support_chatbot_olostep.py:96
- Draft comment:
Avoid catching a generic Exception in scrape_single_page. Catch more specific exceptions (e.g., requests.exceptions.RequestException) to prevent masking underlying issues. - Reason this comment was not posted:
Marked as duplicate.
3. cookbooks/08_customer_support_chatbot_olostep.py:214
- Draft comment:
The chat invocation block is duplicated inside the loop. Confirm if two calls per question are intended or remove one to avoid redundant requests. - Reason this comment was not posted:
Marked as duplicate.
4. cookbooks/08_customer_support_chatbot_olostep.py:59
- Draft comment:
Consider using a logging framework instead of print statements for better control and production readiness. - Reason this comment was not posted:
Confidence changes required:50%<= threshold50%
None
Workflow ID: wflow_s21ortOgf2u7y5hk
Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.
| # Set API keys before imports | ||
|
|
||
| from dotenv import load_dotenv | ||
| import requests |
There was a problem hiding this comment.
Call load_dotenv() after import to ensure env vars are loaded.
| import requests | |
| load_dotenv() |
| ] | ||
|
|
||
| for question in test_questions: | ||
| print(f"\nQ: {question}") |
There was a problem hiding this comment.
Duplicate chat call for the same question; remove redundancy.
|
sorry for the long wait @aadithyanr , this slipped through the cracks. picking this up this week. in the meantime, it'd be super helpful if you are able to resolve merge conflicts and as many of the AI reviewer comments as possible |
User description
Olostep Support Chatbot Example
This cookbook demonstrates how to build a customer support chatbot using Olostep's superior web scraping capabilities integrated with Julep's AI features.
Key advantages over Spider API:
The example shows:
PR Type
Enhancement, Documentation
Description
Added a new example for building a customer support chatbot using Olostep and Julep.
Demonstrated parallel web scraping with Olostep's API for efficient content extraction.
Integrated scraped content into Julep's document management system.
Created a chatbot interface and tested it with sample Q&A scenarios.
Changes walkthrough 📝
08_customer_support_chatbot_olostep.py
Added Olostep-based chatbot example with scraping and integrationcookbooks/08_customer_support_chatbot_olostep.py
Julep.
Important
Adds a new example
08_customer_support_chatbot_olostep.pydemonstrating a customer support chatbot using Olostep's web scraping and Julep's AI features.08_customer_support_chatbot_olostep.pyto demonstrate building a customer support chatbot.AdvancedScraperclass for web scraping with Olostep API.ThreadPoolExecutor.JULEP_API_KEYandOLOSTEP_API_KEYenvironment variables.This description was created by
for 6d02c82. It will automatically update as commits are pushed.