Giter Site home page Giter Site logo

gpt4all-llamaindex-experiment's Introduction

gpt4all-llamaindex-experiment

https://github.com/nomic-ai/gpt4all https://github.com/jerryjliu/llama_index https://blog.ouseful.info/2023/04/04/running-gpt4all-on-a-mac-using-python-langchain-in-a-jupyter-notebook/

Setup

python3.9 -m virtualenv venv
source venv/bin/activate
pip install pyllamacpp
pip install llama-index
pip install PyPDF2
pip install pyllama
python3 -m llama.download --model_size 7B --folder llama/
pyllamacpp-convert-gpt4all ../gpt4all/chat/gpt4all-lora-quantized.bin llama/tokenizer.model ../gpt4all/chat/gpt4all-lora-q-converted.bin
pip uninstall -y langchain
pip install --upgrade git+https://github.com/hwchase17/langchain.git
pip install llama-cpp-python
pip install sentence_transformers

Run

source venv/bin/activate
python3 index.py # Note, each document must be less than ~512 tokens
python3 query_without_index.py
python3 query_with_index.py

Results

Question: What role does the public sector play in rural development?

Without index:

1. The Public Sector plays a crucial role in Rural Development by providing infrastructure, services and employment opportunities to the underprivileged population in rural areas. 2. They provide access to basic amenities such as roads, schools, health centres etc., which are essential for people's livelihood. 3. The Public Sector also helps in developing infrastructure like bridges, dams and water reservoirs that aid the farmers in boosting their agricultural output. 4. In terms of employment opportunities, public sector units located in rural areas offer jobs to local people who may not have access to private or corporate sectors. 5. These public sector units also help to empower the women folk and create a more gender-equal society.

With index:

1. The public sector has a key role to play in providing investment and policy support to tackle persistent market failures such as under-provision of public goods (e.g., infrastructure, healthcare) and negative externalities (such as climate change adaptation). 2. It is also crucial for the public sector to address the lack of protection for the poorest and most vulnerable people through targeted investment programs and policies that aim to alleviate poverty. 3. The private sector plays a vital role in rural development, especially in agriculture and rural development, but there is still much to learn about the role of the private sector in supporting the poorest and most vulnerable people and the extent to which investments specifically target this group.

Question: What factors have primarily caused driven changes in volumes of ODA in the last 10 years?

Without index:

There are several factors that have contributed to driven changes in the volume of Official Development Assistance (ODA) over the last decade. These include global economic trends, political priorities and shifts in donor country policies. Here are some key drivers:

1. Global Economic Trends: The global economy has been on an upswing since 2009, which has helped many developing countries achieve growth and stability. This has led to improvements in their economic conditions, resulting in less ODA dependency.

2. Political Priorities: Donor governments have prioritized areas such as education, healthcare and climate change in recent years, leading to an increase in aid for those sectors. In addition, there has been a shift towards more sustainable approaches to development, which has led to increased investment in infrastructure that promotes long-term growth rather than just short-term gains.

3. Shifts in Donor Country Policies: There have been changes in the policies of donors, such as the United Kingdom's "Aid for Trade" initiative and the United States' focus on private sector investment in foreign aid. These shifts have led to a more target

With index:

The factors that have primarily caused the changes in volumes of ODA in the last 10 years can be attributed to a combination of factors. Some of these factors include political will, donor commitment, multilateral cooperation, and global economic trends such as inflation and currency fluctuations. These factors play a crucial role in determining the direction and rate of change in volumes of ODA over time. However, it is important to note that these factors are not mutually exclusive and can often work synergistically to affect overall ODA flows.

gpt4all-llamaindex-experiment's People

Contributors

akmiller01 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.