Skip to content
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

Question about 'Connect your own data' #18

Open
yiouyou opened this issue Apr 25, 2024 · 1 comment
Open

Question about 'Connect your own data' #18

yiouyou opened this issue Apr 25, 2024 · 1 comment

Comments

@yiouyou
Copy link

yiouyou commented Apr 25, 2024

Within 'Connect your own data' section, a workflow of hacker_news has been generated and needed to be running. My questions are:

  1. where to put the workflow file? save the following code somewhere?
path: /tmp/hn
embeddings:
  path: sentence-transformers/all-MiniLM-L6-v2
  content: true
tabular:
  idcolumn: url
  textcolumns:
  - title
workflow:
  index:
    tasks:
    - batch: false
      extract:
      - hits
      method: get
      params:
        tags: null
      task: service
      url: https://hn.algolia.com/api/v1/search?hitsPerPage=50
    - action: tabular
    - action: index
writable: true
  1. how to run the workflow? save the following code somewhere then run it with python?
from txtai.app import Application

app = Application("index.yml")
list(app.workflow("index", ["front_page"]))

Thanks,

@davidmezzetti
Copy link
Member

This project is in need of some updates. Once that happens, details about how to do this will be added to the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants