Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanwahab committed Oct 13, 2024
1 parent a45a5f4 commit 9122513
Show file tree
Hide file tree
Showing 165 changed files with 18 additions and 42 deletions.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added course_content/src/2-ui.md
Empty file.
Empty file.
Empty file added course_content/src/3-radar.md
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file added course_content/src/4lidar.md
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
26 changes: 1 addition & 25 deletions data/robotics-odyssey/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,31 +147,7 @@
"Disaster Response Robotics – Robots for search and rescue missions after natural disasters."

]
},
{
"title": "misc-edit-idea-dump-from-people",
"sub_modules": [
"Reinforcement Learning for Robot Training",
"Computer Vision for Robots: Seeing and Understanding the World",
"Using Natural Language Processing to Communicate with Robots",
"Robot Learning from Demonstration (LfD)",
"Building Robots with TinyML: AI at the Edge",
"Combining Robotics and Generative AI",
"Neural Networks for Motion Planning",
"Real-time Object Detection with SAM (Segment Anything Model)",
"The Role of Deep Learning in Robot Perception",
"How Robots Are Trained to Understand Context",
"Foundations & Principles",
"History of Robotics: From Ancient Automatons to AI",
"Key Concepts in Robotics: Sensors, Actuators, and Control Systems",
"The Role of Kinematics in Robot Movement",
"Understanding ROS (Robot Operating System): The Robotics Framework",
"Embedded Systems for Robots: Microcontrollers and Beyond",
"Swarm Robotics: Intelligence in Numbers",
"Collaborative Robots (Cobots): Human-Robot Interaction",
"Open-Source Robotics: Democratizing Innovation",
"From Mechanics to Electronics: Building a Simple Robot Arm"
]
}

]
}
21 changes: 10 additions & 11 deletions infra/scripts/course_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
#file_names=$(jq -r '.modules[].title | gsub(" "; "-") | ascii_downcase | gsub("[^a-z0-9-]"; "") + ".md"' data/robotics-odyssey/modules.json)


file_names=$(jq -r '.modules[].title | gsub(" "; "-") | ascii_downcase | gsub("[^a-z0-9-]"; "") + ".md"' data/robotics-odyssey/modules.json)
submodule_file_names=$(jq -r '.modules[].sub_modules[].title | gsub(" "; "-") | ascii_downcase | gsub("[^a-z0-9-]"; "") + ".md"' data/robotics-odyssey/modules.json)
echo $submodule_file_names

#echo $file_names
#file_names=$(jq -r '.modules[].title | gsub(" "; "-") | ascii_downcase | gsub("[^a-z0-9-]"; "") + ".md"' data/robotics-odyssey/modules.json)
# submodule_file_names=$(jq -r '.modules[].sub_modules[] | gsub(" "; "-") | ascii_downcase | gsub("[^a-z0-9-]"; "") + ".md"' data/robotics-odyssey/modules.json)
# echo $submodule_file_names

for filename in $submodule_file_names do
echo "Processing $filename" # Add a command inside the loop
# Add your desired command here, for example:
#touch "course_content/docs/$filename"
done
# #echo $file_names

# python3 infra/scripts/course_gen_step_2.py --query "gen a markdown of example markdown about the robotics topic " --input_dir data/robotics-odyssey/ --output_dir=js/course_content/docs/
# for filename in $submodule_file_names; do # Indentation fixed here
# echo "Processing $filename" # Add a command inside the loop
# # Add your desired command here, for example:
# touch "course_content/src/$filename"
# done

python3 infra/scripts/course_gen_step_2.py --query "gen a markdown of example markdown about the robotics topic " --input_dir js/course_content/docs/ --output_dir=js/course_content/docs/
10 changes: 5 additions & 5 deletions infra/scripts/course_gen_step_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def process_all_files_in_directory(query, directory_path):
file_contents = [open(file_path, 'r').read() for file_path in files]
file_dict = {file_path: content for file_path, content in zip(files, file_contents)}
start_time = time.time()
with ThreadPoolExecutor(max_workers=10) as executor:
with ThreadPoolExecutor(max_workers=20) as executor:
futures = []
for index, (filename, content) in enumerate(file_dict.items()):
print(f"File {index}: {filename} with content length {len(content)}")
Expand Down Expand Up @@ -187,13 +187,13 @@ def process_all_files_in_directory(query, directory_path):



queries = [query(micro_query) for micro_query in queries]
for query in queries:
process_all_files_in_directory(query, input_dir)


process_files_from_json(json_file_path, input_dir, output_dir)


# queries = [query(micro_query) for micro_query in queries]
# for query in queries:
# process_all_files_in_directory(query, input_dir)
# augment this file to pass in 1tb of embeddings to llama / anthropic / openai
# talk

Expand Down
3 changes: 2 additions & 1 deletion views/odyssey/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function Footer() {
))}
</div>
<p className="mt-8 text-xs leading-5 text-gray-400 md:order-1 md:mt-0">
&copy; 2020 Your Company, Inc. All rights reserved.
95$ for adults and $20 for anyone under 18 -> half off if you contribute an imporvmenet tyvm
daily updates for the next 65 years. - link to geo hots slam redone by dr. eggnog
</p>
</div>
</div>
Expand Down

0 comments on commit 9122513

Please sign in to comment.