Skip to content

fix: format streaming as sse (#372) #585

fix: format streaming as sse (#372)

fix: format streaming as sse (#372) #585

Workflow file for this run

# Ingest the docs site whenever changes are pushed to the www/ directory.
name: Vectara Docs Ingestion
on:
push:
branches:
- main
paths:
- www/**
jobs:
run-ingestion:
runs-on: ubuntu-latest
steps:
- name: Clone vectara ingest repository
uses: actions/checkout@v2
with:
repository: vectara/vectara-ingest
ref: main
path: vectara-ingest
- name: Create the config YAML file
working-directory: ./vectara-ingest
run: |
echo "vectara:
corpus_id: ${{secrets.VECTARA_DOCS_CORPUS_ID}}
customer_id: ${{secrets.VECTARA_DOCS_CUSTOMER_ID}}
reindex: true
crawling:
crawler_type: docs
docs_crawler:
base_urls: [\"https://docs.vectara.com/docs\"]
pos_regex: [\".*vectara.com/docs.*\"]
neg_regex: [\".*vectara.com/docs/rest-api/.*\"]
extensions_to_ignore: [\"php\", \"java\", \"py\", \"js\"]
docs_system: docusaurus" >> ingest.yaml
echo "[default]
api_key=\"${{secrets.VECTARA_DOCS_API_KEY}}\"" >> secrets.toml
cat ingest.yaml
cat secrets.toml
- name: Wait 3 minutes for site deployment
run: sleep 180
shell: bash
- name: Run the bash script
working-directory: ./vectara-ingest
run: |
bash run.sh ingest.yaml default
- name: Check the logs
working-directory: ./vectara-ingest
run: docker logs -f vingest