Skip to content

uw-ssec/bioethics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bioethics Project

This project provides tools and services for bioethics research and applications. The following instructions explain how to set up and run the project using pixi.

Prerequisites

Ensure you have the following installed on your system:

  • pixi package manager
  • Ollama for running LLMs locally

Setting up Ollama

  1. Install Ollama from ollama.com

  2. Pull the default language model:

    ollama pull llama3.2

    Note: The default model is specified in frontend/config.py as GENERATION_MODEL = "llama3.2". If you wish to use a different model, modify this setting and pull that model instead.

Getting Started

  1. Clone the repository:

    git clone https://github.com/uw-ssec/bioethics.git
    cd bioethics
  2. Install dependencies:

    pixi install
  3. Run the Server:

    pixi run server
  4. Run the Interface (You might need to run it in another terminal):

    pixi run streamlit
  5. Access the services:

  6. To stop the services, press Ctrl+C in the terminal.

Customization

  • To change the language model:

    1. Edit frontend/config.py and modify the GENERATION_MODEL variable
    2. Pull the new model using ollama pull YOUR_NEW_MODEL_NAME
    3. Restart the services
  • To customize prompt templates:

    1. Open frontend/config.py
    2. Modify the PROMPT_TEMPLATES dictionary to edit existing templates or add new ones
    3. Each template should include {context} and {question} placeholders that will be replaced with retrieved content and user questions
    4. After saving changes, restart the streamlit interface (pixi run streamlit) to see the updated templates
  • Modify the pixi configuration files to adjust service configurations or dependencies.

Troubleshooting

  • Ensure no other services are using ports 8000 or 8501.
  • If you encounter issues with pixi, refer to the pixi documentation.
  • For Ollama issues, check the Ollama documentation.
  • Verify Ollama is running with ollama list to see available models.

For further assistance, check the project issues section.

Open source licensing

Statement from Schmidt Sciences:

Schmidt Sciences expects that any code from projects funded by Schmidt Sciences be released as open source under an OSI-approved permissive license (such as Apache v2.0 or MIT). We recommend that projects avoid using GPL due to known complexities associated with it. We encourage projects to publish data used for peer-reviewed scientific articles along with the code used to produce the results. Additionally, we recommend avoiding any license modifications for simplicity, and alignment with standard practices.

About

This project creates lay summaries of academic documents for research participants

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages