Giter VIP home page Giter VIP logo

llm-based-egogram-test's Introduction

Egogram Test using Large Language Models

This repository contains a Python notebook (LLM_Based_Egogram_test.ipynb) for conducting an egogram test using Gemini large language model (LLM). The test is designed to determine the egogram (child, adult, parent) of an individual based on their responses to a set of questions related to emotions, personality traits, and hypothetical situations.

Requirements

To run the notebook, ensure you have the following dependencies installed:

  • langchain
  • langchain-google-genai

You can install them using pip:

pip install -q -U langchain
pip install -q langchain-google-genai

Additionally, you need a Google API Key, which will be used for the language model. The key will be prompted when running the notebook.

Overview

The notebook consists of the following components:

Prompts

  • Initial Task Prompt: This prompt asks Gemini to generate a set of questions for the egogram test. The questions should be formatted with a numbering system (e.g., Q1, Q2, ..., Q20) and must cover emotions, personality traits, and hypothetical situations.
  • Welcome Message: This message welcomes the user and provides instructions on how to answer the questions.
  • Results Prompt: This prompt is used to display the results of the egogram test. It provides guidelines on interpreting the results and formatting the output.

Functions

  • generate_questions: Generates a set of questions for the egogram test based on the specified number of questions.
  • show_results: Displays the results of the egogram test based on the user's answers to the questions.
  • main_test: Executes the entire egogram test process, including generating questions, collecting user responses, and displaying the results as a pie chart.

Usage

  1. Open the notebook (LLM_Based_Egogram_test.ipynb) in a Jupyter environment.
  2. Run the notebook cells sequentially.
  3. Follow the prompts to generate questions, answer them, and view the results.

Note

  • Ensure you have a stable internet connection while running the notebook, as it relies on a language model hosted externally.
  • The results of the egogram test are presented as a pie chart, visualizing the distribution of child, adult, and parent egos based on the user's responses.

Feel free to use and modify this notebook for conducting egogram tests or similar applications. If you encounter any issues or have suggestions for improvements, please feel free to contribute to the repository. Happy testing!

llm-based-egogram-test's People

Contributors

hosseinhimself avatar

Stargazers

 avatar Ali Mhdian avatar Amir01 avatar

Watchers

 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.