Skip to content

Conversation

@rishi-raj-jain
Copy link
Collaborator

fix #1
/claim #1

@rishi-raj-jain rishi-raj-jain marked this pull request as ready for review September 13, 2023 10:33
@rishi-raj-jain
Copy link
Collaborator Author

You'd need to add

Env vars on Github repo
BEARER_TOKEN valued as github access token
OPENAI_API_KEY valued as open ai api key

adding workflow
https://github.com/rishi-raj-jain/tutorials/blob/main/.github/workflows/all.yml to https://github.com/Cap-go/tutorials/ ? and then I can do some empty commit to trigger the workflow

@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
sitemap 7.1.1 filesystem +0 170 kB derduher
openai 4.3.0 network, environment +0 645 kB dschnurr-openai

@rishi-raj-jain
Copy link
Collaborator Author

Okay so right now, the all.yml executes everything.

Basically the model is now trained already and saved in the store, so we can just directly run generate tutorial script!

@rishi-raj-jain
Copy link
Collaborator Author

rishi-raj-jain commented Sep 25, 2023

image

In total the changes are as above.

Folders and their usage:

  • loadedVectorStore: it's the vector store generated by training the model as described below in Step 3.
  • openai-readmes: it's the set of readme's of the capacitor plugins, doing so, won't need to fetch the readmes again
  • public: containing assets of capgo
  • scripts: containing the scripts that perform fetch and write of files and plugins's metadata
  • src/content: containing the tutorials that are shown on the website

Setup

pnpm i

Step 1. Fetch Capacitor Plugins Metadata from NPM registry

node scripts/generate_actions.mjs

Step 2. Fetch Capacitor Plugins READMEs (the folder openai-readmes)

node scripts/write_readme.mjs

Step 3. Train OpenAI Model On The Same

node scripts/train_model.mjs

Step 4. Write Blogs

node scripts/generate_tutorials.mjs

Step 5: Build and Preview

pnpm build && pnpm preview

@riderx riderx merged commit c65a2ac into Cap-go:main Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create an SEO machine based on capacitor plugin tutorials

2 participants