Giter VIP home page Giter VIP logo

elastic_pile's Introduction

elastic_pile

scripts for handeling the pile with elasticsearch and augmenting it with knowledge bases.

currently this is just a hacked together way to load the pile dataset into elasticsearch.

no guarantees about stability or correctness, verify the script yourself

on a 12 core and nvme ssd, the ~450 MB val.json file took 3.5 minutes. the index was around 1.3 gb for the file.

extrapolated to the pile (naively extrapolated 30 files at 15GB each => 30 * 15 * 2 * 3.5 => estimate 55h)

to push pile data into elasticsearch:

edit the indexer.py script to suit your needs

pipenv is recommended:

pip install --user pipenv

enter pipenv shell:

pipenv shell

pipenv install

run ./start to start the elastic docker container

run python indexer.py

tips

show the logs:

docker logs 

run the unittests:

python -m unittest indexerTest

run mypy:

mypy indexer.py

other

todo:

  • logging
  • tests

optional:

  • benchmarks
  • investigate asynchrony or restructure code for maybe more performance

then add knowledge base:

either use a db (like BlazeGraph) or run naively through rdf-files

i hope this can be of use to anyone

if selinux causes permission errors try smth. like chcon -R -t container_file_t config/elasticsearch.yml

elastic_pile's People

Contributors

flowpoint avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.