Skip to content

Commit

Permalink
Updates to some astra.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
synedra committed Feb 9, 2024
1 parent 3a96b6e commit 4f9998f
Show file tree
Hide file tree
Showing 15 changed files with 87 additions and 7 deletions.
17 changes: 17 additions & 0 deletions astrajson/AI-Phil-RestSearch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "Restaurant Search Application",
"key": "AI-Phil-RestSearch",
"description": "This is a technology demonstrator that combines vector similarity search with a secondary geographic radius filter.",
"duration": "2h",
"skillLevel": "Intermediate",
"netlifyUrl": "",
"gitpodUrl": "",
"vercelUrl": "",
"urls": {
"github": "https://github.com/qzg/streamlit-langchain/tree/main",
"heroimage": "https://raw.githubusercontent.com/AI-Phil/RestSearch/main/readme/homepage.png"
},
"tags": ["vector", "nodejs", "openstreetmap", "openai", "docker"],
"category": "",
"priority": 1
}
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-astra-gatsbyjs-starter.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"graphql api",
"astradb",
"cassandra",
Expand Down
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-astra-netflix.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"graphql api",
"tutorials",
"ds-bulk",
Expand Down
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-astra-tik-tok.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"react",
"netlify",
"deprecated",
"deprecated",
"doc api",
"dev",
"deprecated",
Expand Down
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-battlestax.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"doc api",
"workshop",
"dev",
Expand Down
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-fastsite-console.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"doc api",
"dev",
"ds-bulk",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"doc api",
"cassandra",
"ds-bulk",
Expand Down
1 change: 1 addition & 0 deletions astrajson/Datastax-Examples-weatherapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"doc api",
"timeseries db",
"dev",
Expand Down
1 change: 1 addition & 0 deletions astrajson/DatastaxDevs-workshop-graphql-netflix.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"cassandra",
"gitpod",
"deprecated",
"deprecated",
"graphql api",
"netlify",
"nosql",
Expand Down
1 change: 1 addition & 0 deletions astrajson/DatastaxDevs-workshop-intro-to-graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"workshop",
"nosql",
"deprecated",
"deprecated",
"graphql api",
"gitpod",
"astradb",
Expand Down
1 change: 1 addition & 0 deletions astrajson/DatastaxDevs-workshop-social-media-tiktok.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"tags": [
"javascript",
"deprecated",
"deprecated",
"doc api",
"workshop",
"cassandra",
Expand Down
14 changes: 14 additions & 0 deletions astrajson/awesome-astra-vector-demos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"key": "cassioml-langchain-hotels-app",
"tags": ["vector", "astradb", "python", "cassio", "langchain"],
"urls": {
"github": "https://github.com/awesome-astra/docs",
"heroimage": "https://raw.githubusercontent.com/awesome-astra/docs/main/docs/img/vector_demos/vector_demos.png",
"readme": "https://github.com/awesome-astra/docs/blob/main/docs/pages/aiml/llm/vector_demos.md"
},
"name": "Vector Demos",
"description": "Vector Search and GenAI, a curated collection of demo notebooks and apps.",
"duration": "2h",
"skilllevel": "Intermediate",
"priority": 1
}
15 changes: 15 additions & 0 deletions astrajson/cassioml-langchain-hotels-app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"key": "cassioml-langchain-hotels-app",
"tags": ["vector", "astradb", "python", "cassio", "langchain"],
"urls": {
"github": "https://github.com/cassioml/langchain-hotels-app",
"heroimage": "https://raw.githubusercontent.com/cassioml/langchain-hotels-app/main/hotels_animated.gif"
},
"forks_count": 1,
"stargazers_count": 4,
"name": "Hotels LLM Demo",
"description": "A full demo app (API + front-end) to search and review hotels, powered by GenAI, LLMs and embedding vectors.",
"duration": "2h",
"skilllevel": "Intermediate",
"priority": 1
}
19 changes: 19 additions & 0 deletions astrajson/krishnannarayanaswamy-bank-ragstax-demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"key": "krishnannarayanaswamy-bank-ragstax-demo",
"tags": ["vector", "astradb", "data api", "ragstax"],
"urls": {
"github": "https://github.com/krishnannarayanaswamy/bank-ragstax-demo",
"heroimage": "https://raw.githubusercontent.com/datastaxdevs/gallery_content_loader/main/datastax-logo_square.png"
},
"last_modified": "Fri, 03 Nov 2023 02:24:45 GMT",
"forks_count": 0,
"stargazers_count": 0,
"name": "Bank Ragstax Demo",
"description": "A demo that demonstrates Astra RAGStax platform, Streamlit interface for a chatbot and DataStax Astra as Vector Store.",
"duration": "2h",
"skilllevel": "Intermediate",
"priority": 1,
"readme": "<p>A demo that demonstrates Astra RAGStax platform, Streamlit interface for a chatbot and DataStax Astra as Vector Store.</p>\n<p>Create Astra account, enable RAGStax, create vector database, download the secure bundle and create a token<br />\nCreate a folder named config<br />\nStore the Astra token in json format<br />\nStore the secure connect bundle</p>\n<p>Create a Streaming tenant and Astra and enable RAGStax on it.</p>\n<p>Install langstream in your computer for CLI</p>\n<p>export KAFKA_BOOTSTRAP_SERVERS=&quot;&quot;<br />\nexport KAFKA_USERNAME=&quot;&quot;<br />\nexport KAFKA_PASSWORD=&quot;&quot;<br />\nexport OPEN_AI_ACCESS_KEY=&quot;&quot;<br />\nexport ASTRA_CLIENT_ID=&quot;&quot;<br />\nexport ASTRA_SECRET=&quot;&quot;<br />\nexport ASTRA_TOKEN=&quot;&quot;<br />\nexport ASTRA_DATABASE=<br />\nexport S3_BUCKET_NAME=<br />\nexport S3_ENDPOINT=<br />\nexport S3_ACCESS_KEY=<br />\nexport S3_SECRET=<br />\nexport S3_REGION=</p>\n<p>ragstack apps deploy ragstax-astra-demo -app app -i instances/astra.yaml -s secrets/secrets.yaml</p>\n<p>Review logs using</p>\n<p>ragstack apps logs ragstax-astra-demo</p>\n<p>Review and Change the code in frontend/chatbot.py based on your config files, keyspace and table names.</p>\n<p>export ASTRA_DB_APPLICATION_TOKEN=&quot;&quot;<br />\nexport ASTRA_DB_ID=&quot;&quot;<br />\nexport ASTRA_DB_KEYSPACE=&quot;&quot;</p>\n<p>streamlit run frontend/chatbot.py</p>\n",
"readme_markdown": "A demo that demonstrates Astra RAGStax platform, Streamlit interface for a chatbot and DataStax Astra as Vector Store.\n\nCreate Astra account, enable RAGStax, create vector database, download the secure bundle and create a token\nCreate a folder named config\nStore the Astra token in json format\nStore the secure connect bundle\n\nCreate a Streaming tenant and Astra and enable RAGStax on it. \n\nInstall langstream in your computer for CLI\n\nexport KAFKA_BOOTSTRAP_SERVERS=\"\"\nexport KAFKA_USERNAME=\"\"\nexport KAFKA_PASSWORD=\"\"\nexport OPEN_AI_ACCESS_KEY=\"\"\nexport ASTRA_CLIENT_ID=\"\"\nexport ASTRA_SECRET=\"\"\nexport ASTRA_TOKEN=\"\"\nexport ASTRA_DATABASE=\nexport S3_BUCKET_NAME=\nexport S3_ENDPOINT=\nexport S3_ACCESS_KEY=\nexport S3_SECRET=\nexport S3_REGION=\n\nragstack apps deploy ragstax-astra-demo -app app -i instances/astra.yaml -s secrets/secrets.yaml\n\nReview logs using\n\nragstack apps logs ragstax-astra-demo\n\nReview and Change the code in frontend/chatbot.py based on your config files, keyspace and table names.\n\nexport ASTRA_DB_APPLICATION_TOKEN=\"\"\nexport ASTRA_DB_ID=\"\"\nexport ASTRA_DB_KEYSPACE=\"\"\n\nstreamlit run frontend/chatbot.py",
"_id": "krishnannarayanaswamy-bank-ragstax-demo"
}
19 changes: 12 additions & 7 deletions getAppData.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def main():
contents = repo.get_contents("astrajson")
for content_file in contents:
readme_trunc = ""
print(content_file)
#print(content_file)

if content_file.name.endswith(".json"):
print("Getting " + content_file.name)
Expand All @@ -206,11 +206,16 @@ def main():
continue

try:
firstrepo = 'https://raw.githubusercontent.com/' + organization_name + '/' + repository_name + '/main/README.md'
readme = requests.get(firstrepo)
if readme.status_code == 404:
secondrepo = 'https://raw.githubusercontent.com/' + organization_name + '/' + repository_name + '/master/README.md'
readme = requests.get(secondrepo)
if "readme" in currententry["urls"]:
print ("README: " + currententry["urls"]["readme"])
readme = requests.get(currententry["urls"]["readme"])
else:
firstrepo = 'https://raw.githubusercontent.com/' + organization_name + '/' + repository_name + '/main/README.md'
readme = requests.get(firstrepo)
if readme.status_code == 404:
#print ("Getting second repo")
secondrepo = 'https://raw.githubusercontent.com/' + organization_name + '/' + repository_name + '/master/README.md'
readme = requests.get(secondrepo)

readme_as_markdown = readme.text
readme_as_a_string = cmarkgfm.github_flavored_markdown_to_html(readme.text, options)
Expand Down Expand Up @@ -259,7 +264,7 @@ def main():
# newentry["likes"] = likes
# newentry["views"] = views
#except:
# continue
# continue
elif (key.upper() == "GITPODURL"):
newentry["urls"]["gitpod"] = settings[key]
elif (key.upper() == "NETLIFYURL"):
Expand Down

0 comments on commit 4f9998f

Please sign in to comment.