-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: Bedrock support #227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
fix: Bedrock support #227
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cc28d5a
docs: fixed unused param and install
PeriniM ae5655f
docs(readme): improve main readme
PeriniM 4bf90f3
docs: fixed speechgraphexample
PeriniM bd8afaf
Fixed "NameError: name 'GoogleGenerativeAIEmbeddings' is not defined"
arjuuuuunnnnn 13238f4
Merge pull request #185 from arjuuuuunnnnn/main
VinciGit00 0bb68d1
Merge branch 'main' of https://github.com/VinciGit00/Scrapegraph-ai
VinciGit00 5449ebf
Merge branch 'main' of https://github.com/VinciGit00/Scrapegraph-ai
VinciGit00 7b07fdf
add groq example
VinciGit00 772e064
docs: Update README.md
lurenss 82318b9
add sponsor
VinciGit00 7ee5078
Merge branch 'main' of https://github.com/VinciGit00/Scrapegraph-ai
VinciGit00 67b8a14
Update README.md
VinciGit00 f8d8d71
docs: updated sponsor logo
PeriniM 702e913
Update README.md
VinciGit00 198420c
docs: update instructions to use with LocalAI
mudler a433399
Merge pull request #205 from mudler/patch-1
VinciGit00 86be41e
Revert "docs: update instructions to use with LocalAI"
PeriniM b5c1a7b
Merge pull request #206 from VinciGit00/revert-205-patch-1
PeriniM 23b1e5f
Merge branch 'main' into docs
PeriniM b8a8ebb
Merge pull request #207 from VinciGit00/docs
PeriniM 04a4d84
Update serp_api_logo.png
VinciGit00 78f2174
Merge branch 'main' of https://github.com/VinciGit00/Scrapegraph-ai
VinciGit00 2563773
fix: crash asyncio due dependency version
lurenss d359814
ci(release): 0.10.1 [skip ci]
semantic-release-bot 76b0e39
update tests
VinciGit00 03e329d
Added missing classes and fixed anthropic branch
JGalego 8095105
Removed double import
JGalego 986c1e4
Merge branch 'pre/beta' into fix/bedrock
JGalego File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
Basic example of scraping pipeline using SmartScraper | ||
""" | ||
|
||
import os | ||
from dotenv import load_dotenv | ||
from scrapegraphai.graphs import SearchGraph | ||
from scrapegraphai.utils import prettify_exec_info | ||
|
||
load_dotenv() | ||
|
||
|
||
# ************************************************ | ||
# Define the configuration for the graph | ||
# ************************************************ | ||
|
||
groq_key = os.getenv("GROQ_APIKEY") | ||
openai_key = os.getenv("OPENAI_APIKEY") | ||
|
||
graph_config = { | ||
"llm": { | ||
"model": "groq/gemma-7b-it", | ||
"api_key": groq_key, | ||
"temperature": 0 | ||
}, | ||
"embeddings": { | ||
"api_key": openai_key, | ||
"model": "openai", | ||
}, | ||
"headless": False | ||
} | ||
|
||
search_graph = SearchGraph( | ||
prompt="List me the best escursions near Trento", | ||
config=graph_config | ||
) | ||
|
||
result = search_graph.run() | ||
print(result) | ||
|
||
# ************************************************ | ||
# Get graph execution info | ||
# ************************************************ | ||
|
||
graph_exec_info = search_graph.get_execution_info() | ||
print(prettify_exec_info(graph_exec_info)) |
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, could be used in other points of this file