Git Product home page Git Product logo

chroma's Introduction

Bridgetown Website README

Welcome to your new Bridgetown website! You can update this README file to provide additional context and setup information for yourself or other contributors.

Table of Contents

Prerequisites

Install

cd bridgetown-site-folder
bundle install && yarn install

Learn more: Bridgetown Getting Started Documentation.

Development

To start your site in development mode, run yarn start and navigate to localhost:4000!

Use a theme, add some plugins, and/or run some automations to get started quickly.

Commands

# running locally
yarn start

# build & deploy to production
yarn deploy

# load the site up within a Ruby console (IRB)
bundle exec bridgetown console

Learn more: Bridgetown CLI Documentation

Deployment

You can deploy Bridgetown sites on "Jamstack" hosts (Netlify, Vercel, Render, etc.) or virtually any tranditional web server by simply building and copying the output folder to your HTML root.

Read the Bridgetown Deployment Documentation for more information.

To deploy run

$ yarn deploy BRIDGETOWN_ENV=production
$ mv docs/_bridgetown/static ./docs
$ find docs/ -name '*.html' -exec sed -ie 's/_bridgetown\///' {} \;
$ find docs/ -name '*.htmle' -exec rm {} \;

Contributing

If repo is on GitHub:

  1. Fork it
  2. Clone the fork using git clone to your local development machine.
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

chroma's People

Contributors

mariochavez avatar rfgil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chroma's Issues

Ruby on Rails integration

Thanks for this gem, it helped me a lot.

I started this Rails integration to make it easy to make vectors out of Rails models:
https://github.com/AliOsm/chromable

If you found it useful, you can mention it in the README, or contribute to it. It is my first gem, so I'm still learning :)

Delete Collection Fails

Chroma::InvalidRequestError:
  \n                You must provide either ids, where, or where_document to delete. If\n                you want to delete all data in a collection you can delete the\n                collection itself using the delete_collection method. Or alternatively,\n                you can get() all the relevant ids and then delete them.\n    

Running this: Chroma::Resources::Collection.delete chroma_collection_name`

Seems the endpoint changed.

`uninitialized constant Chroma::APIOperations::Data (NameError)`

Error stack:

 -> langchain [main*]: irb
irb(main):001:0> require 'chroma-db'
/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/chroma-db-0.2.0/lib/chroma/api_operations/request.rb:11:in `<module:APIOperations>': uninitialized constant Chroma::APIOperations::Data (NameError)

    Response = Data.define(:status, :body, :headers, :error)
               ^^^^
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/chroma-db-0.2.0/lib/chroma/api_operations/request.rb:4:in `<module:Chroma>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/chroma-db-0.2.0/lib/chroma/api_operations/request.rb:3:in `<top (required)>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/chroma-db-0.2.0/lib/chroma-db.rb:14:in `require_relative'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/chroma-db-0.2.0/lib/chroma-db.rb:14:in `<top (required)>'
	from <internal:/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
	from <internal:/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
	from <internal:/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
	from (irb):1:in `<main>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/irb-1.6.4/exe/irb:9:in `<top (required)>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/bin/irb:25:in `load'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/bin/irb:25:in `<main>'
<internal:/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- chroma-db (LoadError)
	from <internal:/Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
	from (irb):1:in `<main>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/lib/ruby/gems/3.1.0/gems/irb-1.6.4/exe/irb:9:in `<top (required)>'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/bin/irb:25:in `load'
	from /Users/andrei/.asdf/installs/ruby/3.1.2/bin/irb:25:in `<main>'
irb(main):002:0>

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.