From 649cc2c47e7c1c4857792246bdec4cfac8f06ce0 Mon Sep 17 00:00:00 2001 From: Jojo Ortiz Date: Thu, 21 Dec 2023 12:03:11 -0800 Subject: [PATCH 1/3] update openai, pydantic, and chromadb versions and examples to work with uniflow versions --- docker/pykoi-cpu-custom/app.py | 10 +- example/chatbot/chatbot_in_jupyter.ipynb | 85 +- .../chatbot/demo_launch_app_cpu_openai.ipynb | 212 +- example/chatbot/demo_launch_app_cpu_openai.py | 9 +- .../demo_launch_app_gpu_huggingface.ipynb | 77 +- .../demo_model_comparator_cpu_openai.ipynb | 72 +- .../demo_model_comparator_cpu_openai.py | 9 +- ...emo_model_comparator_gpu_huggingface.ipynb | 120 +- .../immigration_gen_data.ipynb | 2639 +++++++++-------- .../immigration_gen_data2.ipynb | 495 ++-- .../retrieval_qa/retrieval_qa_openai_demo.py | 34 +- example/uniflow/uniflow_sft_demo.py | 44 - pykoi/chat/llm/openai.py | 22 +- pykoi/retrieval/llm/openai.py | 10 +- pyproject.toml | 8 +- 15 files changed, 2092 insertions(+), 1754 deletions(-) delete mode 100644 example/uniflow/uniflow_sft_demo.py diff --git a/docker/pykoi-cpu-custom/app.py b/docker/pykoi-cpu-custom/app.py index 6f46654..fdf7447 100644 --- a/docker/pykoi-cpu-custom/app.py +++ b/docker/pykoi-cpu-custom/app.py @@ -4,13 +4,9 @@ ########################################################## # Creating an OpenAI model (requires an OpenAI API key) # ########################################################## -# enter openai api key here -api_key = "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" # Creating an OpenAI model -model = pykoi.ModelFactory.create_model( - model_source="openai", - api_key=api_key) +model = pykoi.ModelFactory.create_model(model_source="openai") ##################################### # Creating a chatbot with the model # @@ -25,9 +21,7 @@ ########################################################### # Create the application # app = pykoi.Application(debug=False, share=True) -app = pykoi.Application( - debug=False, - share=True) +app = pykoi.Application(debug=False, share=True) app.add_component(chatbot) app.add_component(dashboard) app.run() diff --git a/example/chatbot/chatbot_in_jupyter.ipynb b/example/chatbot/chatbot_in_jupyter.ipynb index 8b7acbc..42f3805 100644 --- a/example/chatbot/chatbot_in_jupyter.ipynb +++ b/example/chatbot/chatbot_in_jupyter.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "id": "61b49dc2", "metadata": {}, "outputs": [], @@ -21,36 +21,74 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "id": "6a907bb3", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "from pykoi import Application\n", "from pykoi.chat import ModelFactory\n", "from pykoi.chat import QuestionAnswerDatabase\n", - "from pykoi.component import Chatbot" + "from pykoi.component import Chatbot\n", + "from dotenv import load_dotenv\n", + "load_dotenv()" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "id": "15c2004b", "metadata": {}, "outputs": [], "source": [ - "api_key = \"\"\n", - "\n", "# Creating an OpenAI model\n", - "model = ModelFactory.create_model(model_source=\"openai\", api_key=api_key)" + "model = ModelFactory.create_model(model_source=\"openai\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Add `nest_asyncio` \n", + "Add `nest_asyncio` to avoid error. Since we're running another interface inside a Jupyter notebook where an asyncio event loop is already running, we'll encounter the error. (since The uvicorn.run() function uses asyncio.run(), which isn't compatible with a running event loop.)" ] }, { "cell_type": "code", - "execution_count": null, - "id": "0c07c943", + "execution_count": 10, "metadata": {}, "outputs": [], + "source": [ + "import nest_asyncio\n", + "nest_asyncio.apply()" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "0c07c943", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Table contents after creating table:\n", + "ID: 1, Question: Who is Sam altman, Answer: He is the president of YC, Vote Status: n/a, Timestamp: 2023-12-20 13:37:43.095750\n" + ] + } + ], "source": [ "database = QuestionAnswerDatabase(debug=True)\n", "chatbot = Chatbot(model=model, feedback=\"vote\")\n", @@ -61,14 +99,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "id": "ae7bbef3", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO: Started server process [40457]\n", + "INFO: Waiting for application startup.\n", + "INFO: Application startup complete.\n", + "INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)\n" + ] + } + ], "source": [ - "# import nest_asyncio\n", - "app.display()" + "app.run()" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -87,7 +142,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/chatbot/demo_launch_app_cpu_openai.ipynb b/example/chatbot/demo_launch_app_cpu_openai.ipynb index 65c1060..e83ea18 100644 --- a/example/chatbot/demo_launch_app_cpu_openai.ipynb +++ b/example/chatbot/demo_launch_app_cpu_openai.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -58,28 +58,42 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "### Creating an OpenAI model (requires an OpenAI API key)" + "### Creating an OpenAI model (requires an OpenAI API key)\n", + "Enter your OpenAI API key a .env file in the `~/pykoi` directory with the name OPEN_API_KEY, e.g.\n", + "```\n", + "OPENAI_API_KEY=your_api_key\n", + "```" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# enter openai api key here\n", - "api_key = \"\"" + "from dotenv import load_dotenv\n", + "load_dotenv()" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "model = ModelFactory.create_model(\n", - " model_source=\"openai\",\n", - " api_key=api_key)" + " model_source=\"openai\")" ] }, { @@ -93,7 +107,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -102,7 +116,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -128,7 +142,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -137,7 +151,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -147,9 +161,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO: Started server process [48288]\n", + "INFO: Waiting for application startup.\n", + "INFO: Application startup complete.\n", + "INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Public URL: https://231deca38542b4.lhr.life\n" + ] + } + ], "source": [ "app = Application(debug=False, share=True, username=\"rachel\", password=\"1234\")\n", "app.add_component(chatbot)\n", @@ -178,151 +210,7 @@ "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "t=2023-09-12T01:18:52-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:51858->3.134.73.173:443: read: connection reset by peer\"\n", - "t=2023-09-12T01:32:52-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:53684->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T01:32:57-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=cc480ddd12ca clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T01:48:35-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:53813->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T02:04:07-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=04762d28f116 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T02:21:55-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:53905->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T02:39:34-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=15d86cc263ed clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T02:57:35-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54079->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T03:15:13-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=de851650ca25 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T03:30:48-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54292->3.134.73.173:443: read: connection reset by peer\"\n", - "t=2023-09-12T03:30:52-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=ee72220bc8ea clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T03:48:52-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54445->3.133.228.214:443: read: connection reset by peer\"\n", - "t=2023-09-12T04:05:34-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=6e8c1b39a7ed clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T04:07:35-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54579->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T04:24:16-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=1635c9fd0a95 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T04:40:32-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54645->3.16.250.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T04:40:36-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=7098a9514ade clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T04:57:38-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54759->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T05:12:59-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=17cd2e176a93 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T05:28:08-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:54905->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T05:44:11-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=c1f9867672ff clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T06:01:24-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55045->3.133.228.214:443: read: connection reset by peer\"\n", - "t=2023-09-12T06:01:28-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=d1b0adf825f4 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T06:17:57-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55197->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T06:33:59-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=045eb1bdd071 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T06:51:45-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55305->3.133.228.214:443: read: connection reset by peer\"\n", - "t=2023-09-12T07:08:47-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=ef02b407f58f clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T07:26:42-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55453->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T07:26:46-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=0ebf98c1b8d9 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T07:42:47-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55596->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T07:59:51-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to send authentication request: read tcp 192.168.1.14:55706->3.133.228.214:443: read: connection reset by peer\"\n", - "t=2023-09-12T07:59:54-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=9a7d09cfe70f clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T08:15:13-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55753->3.20.27.198:443: read: connection reset by peer\"\n", - "t=2023-09-12T08:30:30-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=4193bcab5d65 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T08:41:31-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"session closed\"\n", - "t=2023-09-12T08:41:35-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=68d49f4de50a clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T08:53:46-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:55974->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T09:13:38-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=ca4ad0efac68 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T09:29:33-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=27ed3a1045ee clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T09:29:33-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"session closed\"\n", - "t=2023-09-12T09:58:35-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56247->3.16.250.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T10:16:18-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56362->3.134.73.173:443: read: connection reset by peer\"\n", - "t=2023-09-12T10:32:26-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=40e8f70cb5f3 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T10:49:11-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56444->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T11:05:27-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=99a50827acf3 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T11:21:38-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56566->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T11:21:42-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=41878b24a2fb clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T11:38:57-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56777->3.134.73.173:443: read: connection reset by peer\"\n", - "t=2023-09-12T11:56:52-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56888->3.136.132.147:443: read: connection reset by peer\"\n", - "t=2023-09-12T11:56:54-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=f39f77e83e55 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T12:14:16-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:56940->3.16.250.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T12:31:34-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=1194c26a755c clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T12:46:44-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57062->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T13:00:58-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=45431debbd46 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T13:00:59-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=4ea8efaf157c clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T13:01:05-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57212->3.20.27.198:443: read: connection reset by peer\"\n", - "t=2023-09-12T13:05:13-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=1fa447c82069 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T13:23:09-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=0bd50258b330 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T13:57:11-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=2d8d7f46d1b3 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T13:57:11-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"session closed\"\n", - "t=2023-09-12T14:32:23-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57513->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T14:47:07-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57606->3.16.250.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T15:05:07-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=6d1d2a156588 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T15:21:19-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57717->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T15:21:23-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=f31d2ae7e439 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T15:32:55-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:57847->3.12.62.205:443: read: connection reset by peer\"\n", - "t=2023-09-12T15:33:01-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=e9d47c352d0a clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T15:33:18-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=f725fd685f71 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T15:43:14-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=35ca76001e49 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T15:43:14-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"session closed\"\n", - "t=2023-09-12T16:17:01-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:58013->3.20.27.198:443: read: connection reset by peer\"\n", - "t=2023-09-12T16:49:30-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"read tcp 192.168.1.14:58149->3.133.228.214:443: read: connection reset by peer\"\n", - "t=2023-09-12T17:00:22-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=15d8f761b1a0 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T17:00:33-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=a633c3aab1c2 clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T17:06:47-0700 lvl=eror msg=\"heartbeat timeout, terminating session\" obj=tunnels.session obj=csess id=844f0cac015e clientid=0e9d5d409373b0929f4cc030441823a8\n", - "t=2023-09-12T17:06:47-0700 lvl=eror msg=\"session closed, starting reconnect loop\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"session closed\"\n", - "t=2023-09-12T17:06:47-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:06:48-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:06:49-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:06:51-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:06:55-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:24:37-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T17:24:53-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:17:10-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:51:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:51:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:52:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:52:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:53:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:53:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:54:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:54:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:55:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:55:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:56:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:56:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:57:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:57:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:58:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:58:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:59:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T18:59:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:00:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:00:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:01:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:01:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:02:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:02:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:03:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:03:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:04:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:04:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:05:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:05:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:06:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:06:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:07:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:07:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:08:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:08:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:09:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:09:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:10:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:10:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:11:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:11:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:12:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:12:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:13:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:13:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:14:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:14:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:15:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:15:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:16:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:16:34-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n", - "t=2023-09-12T19:17:04-0700 lvl=eror msg=\"failed to reconnect session\" obj=tunnels.session obj=csess id=51b0fe54dcb1 err=\"failed to dial ngrok server with address \\\"tunnel.us.ngrok.com:443\\\": dial tcp: lookup tunnel.us.ngrok.com: no such host\"\n" - ] - } - ], + "outputs": [], "source": [ "app = Application(debug=False, share=False)\n", "app.add_component(chatbot)\n", @@ -368,7 +256,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/chatbot/demo_launch_app_cpu_openai.py b/example/chatbot/demo_launch_app_cpu_openai.py index 4c6d484..9447a2a 100644 --- a/example/chatbot/demo_launch_app_cpu_openai.py +++ b/example/chatbot/demo_launch_app_cpu_openai.py @@ -15,25 +15,20 @@ python -m example.chatbot.demo_launch_app_cpu_openai ``` """ -import os from dotenv import load_dotenv from pykoi import Application -from pykoi.chat import ModelFactory -from pykoi.chat import QuestionAnswerDatabase +from pykoi.chat import ModelFactory, QuestionAnswerDatabase from pykoi.component import Chatbot, Dashboard ########################################################## # Creating an OpenAI model (requires an OpenAI API key) # ########################################################## load_dotenv() -api_key = os.getenv("OPENAI_API_KEY") # Creating an OpenAI model -model = ModelFactory.create_model( - model_source="openai", - api_key=api_key) +model = ModelFactory.create_model(model_source="openai") ##################################### # Creating a chatbot with the model # diff --git a/example/chatbot/demo_launch_app_gpu_huggingface.ipynb b/example/chatbot/demo_launch_app_gpu_huggingface.ipynb index 4b3246e..2b91447 100644 --- a/example/chatbot/demo_launch_app_gpu_huggingface.ipynb +++ b/example/chatbot/demo_launch_app_gpu_huggingface.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -44,7 +44,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -66,7 +66,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -75,12 +75,45 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/opt/conda/envs/pykoi/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", + " from .autonotebook import tqdm as notebook_tqdm\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading model...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\n", + "WARNING: You are currently loading Falcon using legacy code contained in the model repository. Falcon has now been fully ported into the Hugging Face transformers library. For the most up-to-date and high-performance version of the Falcon model code, please update to the latest version of transformers and then load the model without the trust_remote_code=True argument.\n", + "\n", + "Loading checkpoint shards: 100%|██████████| 2/2 [00:36<00:00, 18.18s/it]\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading tokenizer...\n" + ] + } + ], "source": [ "model = ModelFactory.create_model(\n", - " model_source=\"huggingface\", \n", + " model_source=\"huggingface\",\n", " pretrained_model_name_or_path=\"tiiuae/falcon-7b\",\n", " trust_remote_code=True, ## TODO: set as default\n", " load_in_8bit=True\n", @@ -89,7 +122,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -115,7 +148,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -132,7 +165,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -143,9 +176,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO: Started server process [7578]\n", + "INFO: Waiting for application startup.\n", + "INFO: Application startup complete.\n", + "INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Public URL: https://a63d9b47dea54a.lhr.life\n" + ] + } + ], "source": [ "app = Application(debug=False, share=True)\n", "app.add_component(chatbot)\n", @@ -208,7 +259,7 @@ "kernelspec": { "display_name": "pykoi", "language": "python", - "name": "0731a" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -220,7 +271,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/comparator/demo_model_comparator_cpu_openai.ipynb b/example/comparator/demo_model_comparator_cpu_openai.ipynb index e75aed6..afee7b2 100644 --- a/example/comparator/demo_model_comparator_cpu_openai.ipynb +++ b/example/comparator/demo_model_comparator_cpu_openai.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -43,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -60,27 +60,49 @@ "\n", "### Load LLMs\n", "\n", - "#### 1. Creating an OpenAI model (requires an OpenAI API key)" + "#### 1. Creating an OpenAI model (requires an OpenAI API key)\n", + "Enter your OpenAI API key a .env file in the `~/pykoi` directory with the name OPEN_API_KEY, e.g.\n", + "```\n", + "OPENAI_API_KEY=your_api_key\n", + "```" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from dotenv import load_dotenv\n", + "load_dotenv()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ - "# enter openai api key here\n", - "api_key = \"\"\n", - "\n", "# Creating an OpenAI model\n", "openai_model_1 = ModelFactory.create_model(\n", - " model_source=\"openai\", api_key=api_key, engine=\"babbage\"\n", + " model_source=\"openai\", model=\"babbage\"\n", ")\n", "openai_model_2 = ModelFactory.create_model(\n", - " model_source=\"openai\", api_key=api_key, engine=\"curie\"\n", + " model_source=\"openai\", model=\"curie\"\n", ")\n", "openai_model_3 = ModelFactory.create_model(\n", - " model_source=\"openai\", api_key=api_key, engine=\"davinci\"\n", + " model_source=\"openai\", model=\"davinci\"\n", ")" ] }, @@ -93,7 +115,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -112,7 +134,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -130,9 +152,29 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO: Started server process [49001]\n", + "INFO: Waiting for application startup.\n", + "INFO: Application startup complete.\n", + "INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "INFO: 127.0.0.1:53809 - \"GET /components HTTP/1.1\" 200 OK\n", + "INFO: 127.0.0.1:53809 - \"GET /chat/comparator/db/retrieve HTTP/1.1\" 200 OK\n", + "INFO: 127.0.0.1:53820 - \"POST /chat/comparator/Who%20is%20greg%20kinnear HTTP/1.1\" 200 OK\n" + ] + } + ], "source": [ "app = Application(debug=False, share=False)\n", "app.add_component(chatbot_comparator)\n", @@ -175,7 +217,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/comparator/demo_model_comparator_cpu_openai.py b/example/comparator/demo_model_comparator_cpu_openai.py index 6e6195b..4d9d62c 100644 --- a/example/comparator/demo_model_comparator_cpu_openai.py +++ b/example/comparator/demo_model_comparator_cpu_openai.py @@ -16,7 +16,6 @@ ``` """ -import os from dotenv import load_dotenv @@ -24,22 +23,20 @@ from pykoi.chat import ModelFactory from pykoi.component import Compare - ########################################################## # Creating an OpenAI model (requires an OpenAI API key) # ########################################################## load_dotenv() -api_key = os.getenv("OPENAI_API_KEY") # Creating an OpenAI model openai_model_1 = ModelFactory.create_model( - model_source="openai", name="openai_babbage", api_key=api_key, engine="babbage" + model_source="openai", name="openai_babbage", model="babbage" ) openai_model_2 = ModelFactory.create_model( - model_source="openai", name="openai_curie", api_key=api_key, engine="curie" + model_source="openai", name="openai_curie", model="curie" ) openai_model_3 = ModelFactory.create_model( - model_source="openai", name="openai_davinci", api_key=api_key, engine="davinci" + model_source="openai", name="openai_davinci", model="davinci" ) ################################################################################### diff --git a/example/comparator/demo_model_comparator_gpu_huggingface.ipynb b/example/comparator/demo_model_comparator_gpu_huggingface.ipynb index 1799762..147dbf8 100644 --- a/example/comparator/demo_model_comparator_gpu_huggingface.ipynb +++ b/example/comparator/demo_model_comparator_gpu_huggingface.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -43,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": { "scrolled": true }, @@ -65,9 +65,44 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/opt/conda/envs/pykoi/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", + " from .autonotebook import tqdm as notebook_tqdm\n", + "/opt/conda/envs/pykoi/lib/python3.10/site-packages/transformers/utils/generic.py:441: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.\n", + " _torch_pytree._register_pytree_node(\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading model...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/opt/conda/envs/pykoi/lib/python3.10/site-packages/transformers/utils/generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.\n", + " _torch_pytree._register_pytree_node(\n", + "/opt/conda/envs/pykoi/lib/python3.10/site-packages/transformers/utils/generic.py:309: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.\n", + " _torch_pytree._register_pytree_node(\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading tokenizer...\n" + ] + } + ], "source": [ "## requires a GPU with at least 16GB memory (e.g. g4dn.xlarge)\n", "huggingface_model_1 = ModelFactory.create_model(\n", @@ -78,9 +113,18 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading model...\n", + "[HuggingfaceModel] loading tokenizer...\n" + ] + } + ], "source": [ "## requires a GPU with at least 16GB memory (e.g. g4dn.2xlarge)\n", "huggingface_model_2 = ModelFactory.create_model(\n", @@ -91,9 +135,44 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading model...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "\n", + "WARNING: You are currently loading Falcon using legacy code contained in the model repository. Falcon has now been fully ported into the Hugging Face transformers library. For the most up-to-date and high-performance version of the Falcon model code, please update to the latest version of transformers and then load the model without the trust_remote_code=True argument.\n", + "\n", + "Loading checkpoint shards: 100%|██████████| 2/2 [01:52<00:00, 56.27s/it]\n", + "Downloading generation_config.json: 100%|██████████| 117/117 [00:00<00:00, 1.03MB/s]\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[HuggingfaceModel] loading tokenizer...\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Downloading tokenizer_config.json: 100%|██████████| 287/287 [00:00<00:00, 2.68MB/s]\n", + "Downloading tokenizer.json: 100%|██████████| 2.73M/2.73M [00:00<00:00, 70.6MB/s]\n", + "Downloading (…)cial_tokens_map.json: 100%|██████████| 281/281 [00:00<00:00, 2.27MB/s]\n" + ] + } + ], "source": [ "## requires a GPU with at least 24GB memory (e.g. g5.2xlarge)\n", "huggingface_model_3 = ModelFactory.create_model(\n", @@ -114,7 +193,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -125,7 +204,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -143,7 +222,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -152,9 +231,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO: Started server process [11390]\n", + "INFO: Waiting for application startup.\n", + "INFO: Application startup complete.\n", + "INFO: Uvicorn running on http://0.0.0.0:5000 (Press CTRL+C to quit)\n" + ] + } + ], "source": [ "app = Application(debug=False, share=False)\n", "app.add_component(chatbot_comparator)\n", @@ -185,7 +275,7 @@ "kernelspec": { "display_name": "pykoi", "language": "python", - "name": "0731a" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -197,7 +287,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/data_generation/immigration_gen_data.ipynb b/example/data_generation/immigration_gen_data.ipynb index d5a03ca..185a359 100644 --- a/example/data_generation/immigration_gen_data.ipynb +++ b/example/data_generation/immigration_gen_data.ipynb @@ -10,24 +10,19 @@ "name": "stdout", "output_type": "stream", "text": [ - "Requirement already satisfied: openai in /opt/conda/envs/pykoi/lib/python3.10/site-packages (0.27.8)\n", - "Requirement already satisfied: requests>=2.20 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (2.31.0)\n", - "Requirement already satisfied: tqdm in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (4.65.0)\n", - "Requirement already satisfied: aiohttp in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (3.8.5)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (3.2.0)\n", - "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (3.4)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (2.0.4)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (2023.7.22)\n", - "Requirement already satisfied: attrs>=17.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (23.1.0)\n", - "Requirement already satisfied: multidict<7.0,>=4.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (6.0.4)\n", - "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (4.0.2)\n", - "Requirement already satisfied: yarl<2.0,>=1.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.9.2)\n", - "Requirement already satisfied: frozenlist>=1.1.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.4.0)\n", - "Requirement already satisfied: aiosignal>=1.1.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.3.1)\n", - "Requirement already satisfied: clean-text in /opt/conda/envs/pykoi/lib/python3.10/site-packages (0.6.0)\n", - "Requirement already satisfied: emoji<2.0.0,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from clean-text) (1.7.0)\n", - "Requirement already satisfied: ftfy<7.0,>=6.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from clean-text) (6.1.1)\n", - "Requirement already satisfied: wcwidth>=0.2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ftfy<7.0,>=6.0->clean-text) (0.2.6)\n" + "Requirement already satisfied: openai in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (1.6.0)\n", + "Requirement already satisfied: anyio<5,>=3.5.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (3.7.1)\n", + "Requirement already satisfied: distro<2,>=1.7.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.8.0)\n", + "Requirement already satisfied: httpx<1,>=0.23.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (0.26.0)\n", + "Requirement already satisfied: pydantic<3,>=1.9.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.10.11)\n", + "Requirement already satisfied: sniffio in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.3.0)\n", + "Requirement already satisfied: tqdm>4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (4.66.1)\n", + "Requirement already satisfied: typing-extensions<5,>=4.7 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (4.9.0)\n", + "Requirement already satisfied: idna>=2.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai) (3.6)\n", + "Requirement already satisfied: exceptiongroup in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai) (1.2.0)\n", + "Requirement already satisfied: certifi in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpx<1,>=0.23.0->openai) (2023.11.17)\n", + "Requirement already satisfied: httpcore==1.* in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpx<1,>=0.23.0->openai) (1.0.2)\n", + "Requirement already satisfied: h11<0.15,>=0.13 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai) (0.14.0)\n" ] }, { @@ -52,7 +47,6 @@ "import json\n", "import tqdm\n", "import copy\n", - "import openai\n", "import pandas as pd\n", "\n", "from typing import Optional, Sequence, Union\n", @@ -61,9 +55,41 @@ "from nltk.corpus import stopwords\n", "from nltk.stem import SnowballStemmer\n", "from nltk.tokenize import word_tokenize\n", + "from openai import OpenAI" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### OpenAI API key\n", + "To use an OpenAI model, you'll need an OpenAI key. Enter your OpenAI API key a .env file in the `~/pykoi` directory with the name OPEN_API_KEY, e.g.\n", + "```\n", + "OPENAI_API_KEY=your_api_key\n", + "```\n", "\n", - "# from openai import openai_object\n", - "openai.api_key = \"\"" + "In the next cell, we load the key from the .env file." + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from dotenv import load_dotenv\n", + "load_dotenv()" ] }, { @@ -76,7 +102,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "id": "2e76d16d-e586-48c0-8f07-d56a62560d27", "metadata": { "scrolled": true @@ -177,7 +203,7 @@ "4 1. Typically the only way you can get three ye... up NaN " ] }, - "execution_count": 2, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -198,7 +224,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "id": "e2377b09-ecfb-47af-ba20-d8914f19f732", "metadata": { "scrolled": true @@ -240,7 +266,7 @@ }, { "cell_type": "code", - "execution_count": 115, + "execution_count": 5, "id": "dcebd404-ead1-4fb5-adb9-1970c8a0268b", "metadata": {}, "outputs": [ @@ -248,10 +274,11 @@ "name": "stderr", "output_type": "stream", "text": [ - "[nltk_data] Downloading package punkt to /home/ubuntu/nltk_data...\n", + "[nltk_data] Downloading package punkt to /Users/joseortiz/nltk_data...\n", "[nltk_data] Package punkt is already up-to-date!\n", - "[nltk_data] Downloading package stopwords to /home/ubuntu/nltk_data...\n", - "[nltk_data] Package stopwords is already up-to-date!\n" + "[nltk_data] Downloading package stopwords to\n", + "[nltk_data] /Users/joseortiz/nltk_data...\n", + "[nltk_data] Unzipping corpora/stopwords.zip.\n" ] }, { @@ -260,7 +287,7 @@ "True" ] }, - "execution_count": 115, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -272,7 +299,7 @@ }, { "cell_type": "code", - "execution_count": 116, + "execution_count": 6, "id": "5c51d2fc-125b-4041-82f1-1e58196fcd82", "metadata": {}, "outputs": [], @@ -280,26 +307,26 @@ "stop = stopwords.words('english')\n", "# These words are important for the problem. Exclude them from the stop words.\n", "excluding = ['against', 'not', 'don', \"don't\",'ain', 'aren', \"aren't\", 'couldn', \"couldn't\",\n", - " 'didn', \"didn't\", 'doesn', \"doesn't\", 'hadn', \"hadn't\", 'hasn', \"hasn't\", \n", + " 'didn', \"didn't\", 'doesn', \"doesn't\", 'hadn', \"hadn't\", 'hasn', \"hasn't\",\n", " 'haven', \"haven't\", 'isn', \"isn't\", 'mightn', \"mightn't\", 'mustn', \"mustn't\",\n", - " 'needn', \"needn't\",'shouldn', \"shouldn't\", 'wasn', \"wasn't\", 'weren', \n", + " 'needn', \"needn't\",'shouldn', \"shouldn't\", 'wasn', \"wasn't\", 'weren',\n", " \"weren't\", 'won', \"won't\", 'wouldn', \"wouldn't\"]\n", "# New stop word list\n", "stop_words = [word for word in stop if word not in excluding]\n", "\n", "snow = SnowballStemmer('english')\n", "\n", - "def process_text(texts): \n", + "def process_text(texts):\n", " final_text_list=[]\n", " for sent in texts:\n", - " \n", + "\n", " # Check if the sentence is a missing value\n", " if isinstance(sent, str) == False:\n", " sent = \"\"\n", - " \n", + "\n", " filtered_sentence=[]\n", - " \n", - " sent = sent.lower() # Lowercase \n", + "\n", + " sent = sent.lower() # Lowercase\n", " sent = sent.strip() # Remove leading/trailing whitespace\n", " sent = re.sub('\\s+', ' ', sent) # Remove extra space and tabs\n", " sent = re.compile('<.*?>').sub('', sent) # Remove HTML tags/markups:\n", @@ -307,13 +334,13 @@ " for w in word_tokenize(sent):\n", " # We are applying some custom filtering here, feel free to try different things\n", " # Check if it is not numeric and its length>2 and not in stop words\n", - " if(not w.isnumeric()) and (len(w)>2) and (w not in stop_words): \n", + " if(not w.isnumeric()) and (len(w)>2) and (w not in stop_words):\n", " # Stem and add to filtered list\n", " filtered_sentence.append(snow.stem(w))\n", " final_string = \" \".join(filtered_sentence) #final string of cleaned words\n", - " \n", + "\n", " final_text_list.append(final_string)\n", - " \n", + "\n", " return final_text_list\n", "\n", "stop_stem=False\n", @@ -333,10 +360,21 @@ }, { "cell_type": "code", - "execution_count": 117, + "execution_count": 7, "id": "3390bf56-1a0b-4b29-ac64-fa88f8b62416", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Requirement already satisfied: clean-text in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (0.6.0)\n", + "Requirement already satisfied: emoji<2.0.0,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from clean-text) (1.7.0)\n", + "Requirement already satisfied: ftfy<7.0,>=6.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from clean-text) (6.1.1)\n", + "Requirement already satisfied: wcwidth>=0.2.5 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ftfy<7.0,>=6.0->clean-text) (0.2.6)\n" + ] + } + ], "source": [ "! pip install clean-text\n", "f_clean = lambda qaa_pair_raw : clean(qaa_pair_raw,\n", @@ -377,18 +415,18 @@ "id": "0a48d15f-0698-41c0-b26a-58d650ddf8fc", "metadata": {}, "source": [ - "#### Dataset customized clenaup" + "#### Dataset customized cleanup" ] }, { "cell_type": "code", - "execution_count": 118, + "execution_count": 8, "id": "59344b41-74e7-41ae-aea9-e1c915149193", "metadata": {}, "outputs": [], "source": [ "answer_l_raw = qaa[\"Answer\"].to_list()\n", - "qaa[\"Answer\"] = [re.compile(r'<.*?>|More\\.\\.\\.', flags=re.IGNORECASE).sub('', p) for p in answer_l_raw] # Remove HTML tags/markups: " + "qaa[\"Answer\"] = [re.compile(r'<.*?>|More\\.\\.\\.', flags=re.IGNORECASE).sub('', p) for p in answer_l_raw] # Remove HTML tags/markups:" ] }, { @@ -401,7 +439,7 @@ }, { "cell_type": "code", - "execution_count": 119, + "execution_count": 9, "id": "7b64e1ff-b6da-45c4-af28-99ec5badcc95", "metadata": {}, "outputs": [ @@ -430,7 +468,7 @@ }, { "cell_type": "code", - "execution_count": 120, + "execution_count": 10, "id": "7848e9a4-22e4-4e90-8ef6-09d634de1b33", "metadata": {}, "outputs": [ @@ -453,10 +491,118 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "id": "36ada685-4c31-4356-99f9-1f82bf3f17cf", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "len(qaa_list_encoded): 96\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"h-1b to eb-2 process . i would like to know if i have an advanced degree (masters engineering management) and my employer filed my h-1b and if the lottery is picked can i initiate the green card process? i also heard that there is a minimum salary cap for eb-2 advanced degree.\",\n", + "\"_answer\": \"the employer can start the green card process at any time, even before you join. to see the salary figures by county and profession, you can review this link -https://www.flcdatacenter.com/\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"eligibility for and the process of eb-3 to eb-2 porting . can you talk about this upgrade process from eb3 to eb2 for pending i-485? does it need another i-485 application or just a letter to uscis?\",\n", + "\"_answer\": \"you can always go up and you can always go down as long as your perm was filed as an eb-2. if you filed your prm as an eb-3 then you're not going to be able to upgrade to eb-2. but if your perm was filed as an eb-2 you can downgrade i-140 eb-3. you can go back upgrade toeb-2if you already have aneb-2approval. you can file a downgrade second case aseb-3with the sameperm.faq in detail...\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"how can i qualify for eb-1c/international managers or executives . i was in usa on h1b for 11 yrs until august 2019 as senior software engineer and moved/transferred to canada on september 2019 as software development manager, managing 5 direct reports plus 4 second level reports with the same company in usa and canada. and now promoted as director, software development projects support and maintenance, before completing one year as manager. have i-140 approved and priority date is 2012 july.
1.what is my success rate of getting l1a
2. also need to re-apply my green card in eb1c, do i need to be in usa or when i am in canada my company can apply for this. and upon eb1c i-140 approval can i get l1a and move to usa
3. is this the correct time to apply eb1c in the next couple of months when 1 year completes or should i wait for visa ban to complete.\",\n", + "\"_answer\": \"1. please discuss your job description that is intended in the foreign country outside usa with your lawyers. make sure you plan for it from day one because if you try to plan for it a year down the line you won't succeed.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"downgrading from eb-2 to eb-3 . my wife and i are currently on ead's since feb 2012 when the dates became current for our priority date and we were able to apply for the i-485. she is the primary applicant and i am the dependent on her application. since 2012 the ead/ap card is being renewed every 2 years. with the eb3 category now going ahead of eb2 does it make sense for her to downgrade to eb3 - apply for i-140 under eb3. i believe it takes 6 months for approval so we would essentially be doing this preemptively in anticipation of our date becoming current under eb3 in 6+ months.\",\n", + "\"_answer\": \"i see no problem applying for eb-3 and then using whichever one is faster when the time comes.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"how to get h-1b approved for three years, not shorter duration . 1. i got my h1b approved for a period of one year only and expires on oct 27th, 2019. i work through a consultancy. any precautions i can take in the future which can help me getting the h1b approved for 3 years in the upcoming h1b extension after oct 27th, 2019.
2. any particular documents needed for getting the h1b approved for 3 years?
3. if i go for stamping, do i need to be careful with social media at the port of entry? any tips or recommendations you can give with reference to social media during port of entry?
4. my eb2 priority date is feb 4th, 2015 and i'm planning to marry a girl who is a nepal citizen and she's on opt right now. can i move my priority date to eb2 nepal category after marriage? if yes, what would be my next steps - how soon can i file for i-485 interview?\",\n", + "\"_answer\": \"1. typically the only way you can get three year extension is if you can prove that the project will go on for three years.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"options to stay in the usa after expiration of h-1b . 1. i am currently in h1-b more than 10 years in the usa and i have approved i-140 priority date mar 2011 - eb2. my current employment is getting over in 3 weeks. and my current h1-b and i-94 expires in mid-august 2019. my question is if i am not able to find another job within my h1-b and i-94 expires on mid august 2019. what are the options available for me to legally stay in the usa after my h1-b and i-94 expires? i have own house. is there an exceptional case we can file gc ead?
2. without a job how many days i can stay in usa before my i-94 expires using i-140?\",\n", + "\"_answer\": \"1. i don't think you would get the tourist visa or tourist status but you can apply for it.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"downgrading a case from eb-2 to eb-3 for priority date advantage . i am with my current employer since 2008. my gc is filled in eb2 with aug-2010 priority date. only i-140 is approved so far.
1) can my employer file me under eb-3 concurrently without affecting my existing eb-2 filling?
2) if yes then what is the procedure for that? do i have to do my labor and i-140 once again?\",\n", + "\"_answer\": \"1. your eb-2 does not get affected. you can file eb-3/i-140 and i believe you can file a i-485 also if your dates are current.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"eb-2 approved - applying for eb-3 . i applied for eb3 in 2011 and port to eb2, now eb3 dates are moving forward and if it reach to my priority date am i still eligible for eb3 as i initially applied for or do i need to downgrade to eb3. will there be any questions raised?\",\n", + "\"_answer\": \"this is mostly a question of procedure and policy. the uscis has been indicating that if you have only one i-140 approved under eb-2 but you want to file under eb-3 you have to file another i-140 using the copy of the same labor certification - perm application and get an eb-3 approval first.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"not worked for green card sponsoring company fraud implication for naturalization/citizenship . in summary,
* i worked for the same company from 2004 to 2014 (2004 - 2011 in us on h1b, and 2011-2014 in india)
* but, after green card, i did not work for the company in us.
* i don't have even a single paycheck from us company after receiving gc.
* since then, i have been working in a job with same job description that my gc was filed for.
* all other history is clean. i have two us born children, always paid taxes on time, no legal cases.
i heard from reliable sources that under current circumstances, my case will be marked as fraud and there is a 99% chance that they will revoke my gc and deport me, as i didn't stay with the employer that sponsored my gc.
questions
* should i be really concerned?
* what are my options?
* i have the option of going back to the same employer now. does that help?
* if my wife applies for naturalization instead of me, is that going to be any different?\",\n", + "\"_answer\": \"this is a difficult situation. i would argue that this is fine because once you went and got the green card you took the job and you are just working for the company's operations outside the usa temporarily. so i think it's going to be a touch and go, but that is what i would argue. you definitely need to take a lawyer with you.\"}\n", + "\n", + "\n", + "Paraphrase the below question and answer pair in 3 different ways.\n", + "Try not to repeat the verb for each pair to maximize diversity.\n", + "Return everything in an array of JSON object in this format: ######{\"_question\":\"string\", \"_answer\":\"string\"}\n", + "Seperate each pair with \"######\" rather than commas.\n", + "\n", + "######\n", + "{\"_question\": \"how can i downgrade from eb-2 to eb-3 and consequences . i have i-140 approved in eb2, priority date is 2010. when date become current for eb3, i want to downgrade from eb2 to eb3 (i know i have to only refile i-140 and i-485 concurrent). what will happen if uscis denied newly filed i-140 (eb3)? can i-485 also denied? if newly filed i-140 (eb3) denied, can i used my previously approved i-140 (eb2)?\",\n", + "\"_answer\": \"if we have an eb-2 approved i-140 we apply for an eb-3 approval on the same form or you can file eb-3 i-140 and i-485 concurrently if the dates are current. if you file a i-485 that is prematurely filed when the priority date of eb-2 is not current, if eb-3 is denied on which basis you had filed the i-485 then the i-485 will also be denied. i would want your lawyers to review your case very carefully. make sure that you don't have any other issues. if the second eb-3 filing gets denied it should not have any impact on the already approved i-140 unless the second filing reveals some problem with the case that was not addressed earlier.\"}\n", + "\n", + "\n" + ] + } + ], "source": [ "def encode_prompt_QA(prompts=prompts, QA_list=[]):\n", " \"\"\"Encode multiple prompt instructions into a single string.\"\"\"\n", @@ -492,7 +638,7 @@ }, { "cell_type": "code", - "execution_count": 122, + "execution_count": 12, "id": "39e8c494-c5a1-41c3-9830-94903bdef3f5", "metadata": {}, "outputs": [], @@ -502,7 +648,7 @@ }, { "cell_type": "code", - "execution_count": 123, + "execution_count": 14, "id": "898c89a3-9bc4-4f26-9057-5edb2ca59ac3", "metadata": {}, "outputs": [ @@ -515,16 +661,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I initiate the green card process if my employer files an H-1B and it is picked in the lottery?\",\n", - "\"_answer\": \"Yes, the employer can begin the green card process at any time, even before you start working. To check the salary requirements by county and profession, you can look at this link -https://www.flcdatacenter.com/\"}\n", + "{\"_question\": \"Can I initiate the green card process if my employer filed my H-1B and it was selected in the lottery?\",\n", + "\"_answer\": \"Yes, the employer can begin the green card process before you join. To check the salary requirements for EB-2 advanced degree holders, you can look at this link -https://www.flcdatacenter.com/\"}\n", "\n", "######\n", - "{\"_question\": \"If my employer files an H-1B and it is selected in the lottery, can I begin the green card process?\",\n", - "\"_answer\": \"Yes, the employer can initiate the green card process before you even start working. To view the salary limits by county and job, you can refer to this link -https://www.flcdatacenter.com/\"}\n", + "{\"_question\": \"If my employer submitted an H-1B for me and it was chosen in the lottery, can I start the green card process?\",\n", + "\"_answer\": \"Yes, the employer can initiate the green card process before you join. To view the salary caps for EB-2 advanced degree holders, you can refer to this link -https://www.flcdatacenter.com/\"}\n", "\n", "######\n", - "{\"_question\": \"If my employer files an H-1B and it is chosen in the lottery, am I able to start the green card process?\",\n", - "\"_answer\": \"Yes, the employer can initiate the green card process before you begin working. To check the salary caps by county and occupation, you can look at this link -https://www.flcdatacenter.com/\"} \n", + "{\"_question\": \"If my employer filed an H-1B for me and it was picked in the lottery, can I initiate the green card process?\",\n", + "\"_answer\": \"Yes, the employer can initiate the green card process before you join. To check the salary requirements for EB-2 advanced degree holders, you can look at this link -https://www.flcdatacenter.com/\"} \n", "\n", "\n", "\n", @@ -533,16 +679,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility and process for porting from EB-3 to EB-2 for an I-485 pending application?\", \n", - "\"_answer\": \"It is possible to upgrade from EB-3 to EB-2 as long as the PERM was initially filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade. However, if the PERM was filed as an EB-2, then you can downgrade the I-140 to EB-3 and then upgrade back to EB-2 if you already have an EB-2 approval. You can file a downgrade second case as EB-3 with the same PERM. For more information, please refer to the FAQs.\"}\n", + "{\"_question\": \"What is the eligibility and process for porting from EB-3 to EB-2 for a pending I-485? Does it require a new I-485 application or just a letter to USCIS?\",\n", + "\"_answer\": \"It is possible to move up or down in classification as long as the PERM was filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade to EB-2. However, if the PERM was filed as an EB-2, it is possible to downgrade the I-140 to EB-3. It is also possible to upgrade to EB-2 if an EB-2 approval already exists. A downgrade second case as EB-3 with the same PERM can be filed. For more information, please refer to the FAQs.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility and procedure for changing from EB-3 to EB-2 for a pending I-485?\", \n", - "\"_answer\": \"It is possible to move up from EB-3 to EB-2 as long as the PERM was filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade. However, if the PERM was filed as an EB-2, then you can downgrade the I-140 to EB-3 and then upgrade back to EB-2 if you already have an EB-2 approval. You can file a downgrade second case as EB-3 with the same PERM. For more information, please refer to the FAQs.\"}\n", + "{\"_question\": \"What are the requirements and steps for porting from EB-3 to EB-2 for a pending I-485? Is a new I-485 application necessary or just a letter to USCIS?\",\n", + "\"_answer\": \"It is possible to move up or down in classification as long as the PERM was filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade to EB-2. However, if the PERM was filed as an EB-2, it is possible to downgrade the I-140 to EB-3. It is also possible to upgrade to EB-2 if an EB-2 approval already exists. A downgrade second case as EB-3 with the same PERM can be filed. For more information, please consult the FAQs.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility and process for porting from EB-3 to EB-2 for an I-485 that is pending?\", \n", - "\"_answer\": \"It is possible to upgrade from EB-3 to EB-2 as long as the PERM was initially filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade. However, if the PERM was filed as an EB-2, then you can downgrade the I-140 to EB-3 and then upgrade back to EB-2 if you already have an EB-2 approval. You can file a downgrade second case as EB-3 with the same PERM. For further details, please refer to the FAQs.\"} \n", + "{\"_question\": \"What is the eligibility and procedure for porting from EB-3 to EB-2 for a pending I-485? Is a new I-485 application necessary or just a letter to USCIS?\",\n", + "\"_answer\": \"It is possible to move up or down in classification as long as the PERM was filed as an EB-2. If the PERM was filed as an EB-3, then it is not possible to upgrade to EB-2. However, if the PERM was filed as an EB-2, it is possible to downgrade the I-140 to EB-3. It is also possible to upgrade to EB-2 if an EB-2 approval already exists. A downgrade second case as EB-3 with the same PERM can be filed. For more information, please refer to the FAQs.\"} \n", "\n", "\n", "\n", @@ -551,16 +697,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are my chances of getting an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in the US and Canada. I was recently promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an I-140 approved and my priority date is July 2012. Is this the right time to apply for an EB1C in the next couple of months when I complete one year, or should I wait for the visa ban to end?\",\n", - "\"_answer\": \"It is important to discuss your job description that is intended in the foreign country outside the US with your lawyers. Make sure you plan for it from the start, as if you wait a year to plan for it, you may not be successful.\"}\n", + "{\"_question\": \"What are the chances of me getting an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I have since been promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an approved I-140 and my priority date is July 2012. Is this the right time to apply for an EB1C in the next couple of months when I have completed one year, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"It is important to discuss your job description that is intended in the foreign country outside the US with your lawyers. Make sure you plan for it from the start, as trying to plan for it a year down the line is unlikely to be successful.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the chances of me obtaining an L1A visa? I had been in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in the US and Canada. Recently, I was promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an I-140 approved and my priority date is July 2012. Is now the right time to apply for an EB1C in the next couple of months when I complete one year, or should I wait for the visa ban to finish?\",\n", - "\"_answer\": \"It is essential to discuss your job description that is intended in the foreign country outside the US with your lawyers. Make sure you plan for it from the beginning, as if you wait a year to plan for it, you may not be successful.\"}\n", + "{\"_question\": \"What are the chances of me obtaining an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I have since been promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an approved I-140 and my priority date is July 2012. Is now the right time to apply for an EB1C in the next couple of months when I have completed one year, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"It is important to consult with your lawyers about your job description that is intended in the foreign country outside the US. Make sure you plan for it from the beginning, as attempting to plan for it a year down the line is unlikely to be successful.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the odds of me getting an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I moved to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in the US and Canada. Recently, I was promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an I-140 approved and my priority date is July 2012. Is this the correct time to apply for an EB1C in the next couple of months when I complete one year, or should I wait for the visa ban to end?\",\n", - "\"_answer\": \"It is important to consult your job description that is intended in the foreign country outside the US with your lawyers. Make sure you plan for it from day one because if you try to plan for it a year down the line you won't succeed.\"} \n", + "{\"_question\": \"What are the chances of me getting an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I have since been promoted to Director of Software Development Projects Support and Maintenance, before completing one year as Manager. I have an approved I-140 and my priority date is July 2012. Is this the right time to apply for an EB1C in the next couple of months when I have completed one year, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"It is essential to discuss your job description that is intended in the foreign country outside the US with your lawyers. Make sure you plan for it from day one because if you try to plan for it a year down the line you won't succeed.\"} \n", "\n", "\n", "\n", @@ -569,12 +715,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Would it be a good idea for my wife and I to switch from EB-2 to EB-3 for our I-485 application, given that the EB-3 category is now ahead of EB-2?\",\n", + "{\"_question\": \"Would it be beneficial for my wife and I to switch from EB-2 to EB-3?\",\n", "\"_answer\": \"It could be beneficial to apply for EB-3 and then use whichever one is faster when the time comes.\"}\n", "\n", "######\n", - "{\"_question\": \"My wife and I have been on EADs since 2012 when the dates became current for our priority date. We are currently in the EB-2 category, but the EB-3 is now ahead. Is it a good idea to switch to EB-3 and apply for the I-140 under EB-3?\",\n", - "\"_answer\": \"It may be advantageous to apply for EB-3 and then utilize whichever one is faster when the time comes.\"} \n", + "{\"_question\": \"Should we switch from EB-2 to EB-3?\",\n", + "\"_answer\": \"It may be advantageous to submit an EB-3 application and then use whichever one is faster when the time arrives.\"}\n", + "\n", + "######\n", + "{\"_question\": \"Is it a good idea to downgrade from EB-2 to EB-3?\",\n", + "\"_answer\": \"It could be beneficial to apply for EB-3 and then utilize whichever one is quicker when the time comes.\"} \n", "\n", "\n", "\n", @@ -583,16 +733,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What can I do to ensure my H-1B is approved for a three year period, rather than a shorter duration? I got my H-1B approved for one year and it expires on October 27th, 2019. I work through a consultancy. Are there any steps I can take to help me get the H-1B approved for three years when I apply for an extension after October 27th, 2019? What documents do I need to get the H-1B approved for three years? If I go for stamping, do I need to be careful with my social media at the port of entry? Are there any tips or recommendations you can give me regarding social media when I go to the port of entry? My EB2 priority date is February 4th, 2015 and I'm planning to marry a girl who is a Nepal citizen and she's on OPT right now. Can I move my priority date to the EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for an I-485 interview?\",\n", - "\"_answer\": \"Typically the only way you can get three year extension is if you can prove that the project will go on for three years.\"}\n", + "{\"_question\": \"What can I do to ensure I get a three year H-1B approval instead of a shorter duration? I already have an H-1B approval for one year that expires on October 27th, 2019 and I work through a consultancy. Are there any precautions I should take for the future? Are there any particular documents I need to get the H-1B approved for three years? If I go for stamping, do I need to be careful with social media at the port of entry? Are there any tips or recommendations you can provide with regards to social media during port of entry? My EB2 priority date is February 4th, 2015 and I am planning to marry a girl who is a Nepal citizen and she is on OPT right now. Can I move my priority date to EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for I-485 interview?\",\n", + "\"_answer\": \"Typically the only way you can get a three year extension is if you can prove that the project will go on for three years.\"}\n", "\n", "######\n", - "{\"_question\": \"What can I do to make sure my H-1B is approved for a three year period, not a shorter duration? I got my H-1B approved for one year and it expires on October 27th, 2019. I work through a consultancy. Are there any precautions I can take in the future to help me get the H-1B approved for three years when I apply for an extension after October 27th, 2019? What documents are necessary for getting the H-1B approved for three years? If I go for stamping, do I need to be mindful of my social media at the port of entry? Are there any tips or advice you can give me regarding social media when I go to the port of entry? My EB2 priority date is February 4th, 2015 and I'm planning to marry a girl who is a Nepal citizen and she's on OPT right now. Can I move my priority date to the EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for an I-485 interview?\",\n", - "\"_answer\": \"Generally the only way you can get three year extension is if you can demonstrate that the project will go on for three years.\"}\n", + "{\"_question\": \"What can I do to make sure I get a three year H-1B approval instead of a shorter duration? I already have an H-1B approval for one year that expires on October 27th, 2019 and I work through a consultancy. Are there any steps I should take for the future? Are there any documents I need to get the H-1B approved for three years? If I go for stamping, do I need to be mindful of social media at the port of entry? Are there any tips or advice you can provide with regards to social media during port of entry? My EB2 priority date is February 4th, 2015 and I am planning to marry a girl who is a Nepal citizen and she is on OPT right now. Can I move my priority date to EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for I-485 interview?\",\n", + "\"_answer\": \"Generally the only way you can get a three year extension is if you can demonstrate that the project will go on for three years.\"}\n", "\n", "######\n", - "{\"_question\": \"What can I do to ensure my H-1B is approved for a three year period, not a shorter duration? I got my H-1B approved for one year and it expires on October 27th, 2019. I work through a consultancy. Are there any steps I can take to help me get the H-1B approved for three years when I apply for an extension after October 27th, 2019? What documents do I need to get the H-1B approved for three years? If I go for stamping, do I need to be careful with my social media at the port of entry? Are there any tips or recommendations you can give me regarding social media when I go to the port of entry? My EB2 priority date is February 4th, 2015 and I'm planning to marry a girl who is a Nepal citizen and she's on OPT right now. Can I move my priority date to the EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for an I-485 interview?\",\n", - "\"_answer\": \"Generally the only way you can get three year extension is if you can prove that the project will go on for three years.\"} \n", + "{\"_question\": \"What can I do to guarantee I get a three year H-1B approval instead of a shorter duration? I already have an H-1B approval for one year that expires on October 27th, 2019 and I work through a consultancy. Are there any precautions I should take for the future? Are there any particular documents I need to get the H-1B approved for three years? If I go for stamping, do I need to be careful with social media at the port of entry? Are there any tips or recommendations you can give with reference to social media during port of entry? My EB2 priority date is February 4th, 2015 and I am planning to marry a girl who is a Nepal citizen and she is on OPT right now. Can I move my priority date to EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for I-485 interview?\",\n", + "\"_answer\": \"Typically the only way you can get a three year extension is if you can prove that the project will continue for three years.\"} \n", "\n", "\n", "\n", @@ -605,12 +755,12 @@ "\"_answer\": \"I don't think you would be able to get a tourist visa or tourist status, but you can apply for it.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the chances of me staying in the US after my H-1B and I-94 expire?\",\n", - "\"_answer\": \"I don't think you would be able to acquire a tourist visa or tourist status, but you can attempt to apply for it.\"}\n", + "{\"_question\": \"What are the chances of me staying in the US after my H-1B and I-94 end?\",\n", + "\"_answer\": \"It is unlikely that you would be granted a tourist visa or tourist status, but you can try to apply for it.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the options for me to stay in the US after my H-1B and I-94 expire?\",\n", - "\"_answer\": \"I don't think you would be able to obtain a tourist visa or tourist status, but you can try to apply for it.\"} \n", + "{\"_question\": \"What are the options for me to remain in the US legally after my H-1B and I-94 expire?\",\n", + "\"_answer\": \"It is unlikely that you would be able to obtain a tourist visa or tourist status, but you can attempt to apply for it.\"} \n", "\n", "\n", "\n", @@ -619,16 +769,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I downgrade my case from EB-2 to EB-3 to take advantage of the priority date? I have been with my current employer since 2008 and my green card was filed under EB-2 with an August 2010 priority date. Only the I-140 has been approved so far.\",\n", - "\"_answer\": \"Your EB-2 filing will not be affected. You can file an EB-3/I-140 and, if your dates are current, you may also be able to file an I-485.\"}\n", + "{\"_question\": \"Can I downgrade my case from EB-2 to EB-3 for priority date advantage while still working with my current employer since 2008? My green card was filed in EB-2 with an August 2010 priority date and only the I-140 has been approved so far. What is the process for this and do I need to file a new labor and I-140?\",\n", + "\"_answer\": \"Your EB-2 filing will not be affected. You can file an EB-3/I-140 and, if your dates are current, you can also file an I-485.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to switch my case from EB-2 to EB-3 to gain priority date benefits? I have been with my current employer since 2008 and my green card was submitted under EB-2 with an August 2010 priority date. Only the I-140 has been approved thus far.\",\n", - "\"_answer\": \"Your EB-2 filing will remain unaffected. You can file an EB-3/I-140 and, if your dates are current, you may also be able to file an I-485.\"}\n", + "{\"_question\": \"If I have been with my current employer since 2008 and my green card was filed in EB-2 with an August 2010 priority date and only the I-140 has been approved so far, can I switch to EB-3 for priority date advantage without affecting my existing EB-2 filing? What is the procedure for this and do I need to submit a new labor and I-140?\",\n", + "\"_answer\": \"Your EB-2 filing will remain intact. You can submit an EB-3/I-140 and, if your dates are current, you can also file an I-485.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I lower the classification of my case from EB-2 to EB-3 to take advantage of the priority date? I have been with my current employer since 2008 and my green card was filed under EB-2 with an August 2010 priority date. Only the I-140 has been approved up to this point.\",\n", - "\"_answer\": \"Your EB-2 filing will remain intact. You can file an EB-3/I-140 and, if your dates are current, you may also be able to file an I-485.\"} \n", + "{\"_question\": \"I have been with my current employer since 2008 and my green card was filed in EB-2 with an August 2010 priority date and only the I-140 has been approved so far. Is it possible to downgrade to EB-3 for priority date advantage without affecting my existing EB-2 filing? What is the process for this and do I need to resubmit my labor and I-140?\",\n", + "\"_answer\": \"Your EB-2 filing will remain unaffected. You can file an EB-3/I-140 and, if your dates are current, you can also submit an I-485.\"} \n", "\n", "\n", "\n", @@ -637,16 +787,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have an EB-2 approval and I am applying for EB-3. I applied for EB3 in 2011 and ported to EB2. Now, EB3 dates are advancing and if it reaches my priority date, am I still eligible for EB3 as I initially applied for or do I need to downgrade to EB3? Will there be any questions raised?\",\n", - "\"_answer\": \"This is mostly a matter of procedure and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the copy of the same labor certification - PERM application and get an EB-3 approval first.\"}\n", + "{\"_question\": \"I have an EB-2 approval and am applying for EB-3. I filed for EB-3 in 2011 and ported to EB-2, and now EB-3 dates are progressing. If the priority date reaches mine, am I still qualified for EB-3 as I initially applied for, or do I need to downgrade to EB-3? Will there be any queries?\",\n", + "\"_answer\": \"This is mainly a matter of process and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the same labor certification - PERM application and get an EB-3 approval first.\"}\n", "\n", "######\n", - "{\"_question\": \"I have an EB-2 approval and I am applying for EB-3. I filed for EB3 in 2011 and switched to EB2. Now, EB3 dates are progressing and if it reaches my priority date, am I still qualified for EB3 as I initially applied for or do I need to downgrade to EB3? Will there be any queries raised?\",\n", - "\"_answer\": \"This is mostly an issue of procedure and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the copy of the same labor certification - PERM application and get an EB-3 approval first.\"}\n", + "{\"_question\": \"I have an EB-2 approval and am applying for EB-3. I filed for EB-3 in 2011 and ported to EB-2, and now EB-3 dates are advancing. If the priority date reaches mine, am I still eligible for EB-3 as I initially applied for, or do I need to downgrade to EB-3? Will there be any questions asked?\",\n", + "\"_answer\": \"This is mainly a question of procedure and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the same labor certification - PERM application and get an EB-3 approval first.\"}\n", "\n", "######\n", - "{\"_question\": \"I have an EB-2 approval and I am applying for EB-3. I put in for EB3 in 2011 and changed to EB2. Now, EB3 dates are moving ahead and if it reaches my priority date, am I still eligible for EB3 as I initially applied for or do I need to downgrade to EB3? Will there be any questions posed?\",\n", - "\"_answer\": \"This is mostly a question of procedure and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the copy of the same labor certification - PERM application and get an EB-3 approval first.\"} \n", + "{\"_question\": \"I have an EB-2 approval and am applying for EB-3. I filed for EB-3 in 2011 and ported to EB-2, and now EB-3 dates are moving forward. If the priority date reaches mine, am I still qualified for EB-3 as I initially applied for, or do I need to downgrade to EB-3? Will there be any queries raised?\",\n", + "\"_answer\": \"This is mainly a matter of process and policy. The USCIS has been indicating that if you have only one I-140 approved under EB-2 but you want to file under EB-3, you have to file another I-140 using the same labor certification - PERM application and obtain an EB-3 approval first.\"} \n", "\n", "\n", "\n", @@ -655,16 +805,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What should I do if I have been working for the same company since 2004, but after receiving my green card, I have not worked for the company in the US and I don't have a single paycheck from a US company? I have two US-born children, always paid taxes on time, and no legal cases. Is there a chance that my green card will be revoked and I will be deported?\",\n", - "\"_answer\": \"This is a difficult situation. I would suggest that you take a lawyer with you to argue that you took the job after receiving the green card and you are just working for the company's operations outside the US temporarily. It may be a touch and go, but that is what I would suggest.\"}\n", + "{\"_question\": \"What are the implications of not working for the green card sponsoring company after receiving the green card? Is there a chance of my green card being revoked and me being deported?\", \n", + "\"_answer\": \"This is a difficult situation. It is possible that your green card could be revoked and you could be deported, but I would argue that this is a valid situation since you took the job and are just working for the company's operations outside the US temporarily. It is a touch and go situation, so it is best to consult a lawyer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have been with the same company since 2004 and I have not worked for them in the US after receiving my green card. I do not have a single paycheck from a US company. I have two US-born children, always paid taxes on time, and no legal cases. Is there a chance that my green card will be revoked and I will be deported?\",\n", - "\"_answer\": \"This is a difficult situation. I would recommend that you take a lawyer with you to make the argument that you took the job after getting the green card and you are just working for the company's operations outside the US temporarily. It may be a risky situation, but that is what I would recommend.\"}\n", + "{\"_question\": \"What are the risks of not working for the green card sponsoring company after receiving the green card? Could my green card be taken away and I be deported?\", \n", + "\"_answer\": \"This is a difficult situation. It is possible that your green card could be revoked and you could be deported, but I would suggest that this is a valid situation since you accepted the job and are just working for the company's operations outside the US temporarily. It is a risky situation, so it is best to consult a lawyer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have been with the same company since 2004 and I have not worked for them in the US after receiving my green card. I do not have a single paycheck from a US company. I have two US-born children, always paid taxes on time, and no legal cases. Is there a chance that my green card will be revoked and I will be deported?\",\n", - "\"_answer\": \"This is a difficult situation. I would advise that you take a lawyer with you to argue that you took the job after getting the green card and you are just working for the company's operations outside the US temporarily. It may be a gamble, but that is what I would advise.\"} \n", + "{\"_question\": \"What are the consequences of not working for the green card sponsoring company after receiving the green card? Is there a chance of my green card being taken away and me being deported?\", \n", + "\"_answer\": \"This is a difficult situation. It is possible that your green card could be revoked and you could be deported, but I would argue that this is a valid situation since you took the job and are just working for the company's operations outside the US temporarily. It is a precarious situation, so it is best to consult a lawyer.\"} \n", "\n", "\n", "\n", @@ -674,15 +824,15 @@ "\n", "######\n", "{\"_question\": \"What will happen if I attempt to downgrade from EB-2 to EB-3 and my newly filed I-140 is denied? Can I use my previously approved I-140 (EB-2)?\",\n", - "\"_answer\": \"If you file an I-485 prematurely when the priority date of EB-2 is not current, and the EB-3 filing is denied, then the I-485 will also be denied. It is important to have your lawyer review your case carefully to ensure there are no other issues. If the second EB-3 filing is denied, it should not have any impact on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", + "\"_answer\": \"If you file an I-485 prematurely when the priority date of EB-2 is not current, and the EB-3 filing is denied, the I-485 will also be denied. It is important to have your lawyer review your case carefully to ensure there are no other issues. If the second EB-3 filing is denied, it should not have any impact on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", "\n", "######\n", - "{\"_question\": \"What will be the outcome if I try to switch from EB-2 to EB-3 and my new I-140 is rejected? Can I still use my earlier approved I-140 (EB-2)?\",\n", - "\"_answer\": \"If you file an I-485 before the priority date of EB-2 is current, and the EB-3 application is denied, then the I-485 will also be denied. It is important to have your lawyer review your case thoroughly to make sure there are no other issues. If the second EB-3 filing is denied, it should not affect the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", + "{\"_question\": \"What will be the outcome if I try to downgrade from EB-2 to EB-3 and my new I-140 is rejected? Can I still use my previously approved I-140 (EB-2)?\",\n", + "\"_answer\": \"If you submit an I-485 before the priority date of EB-2 is current, and the EB-3 filing is denied, the I-485 will also be denied. It is important to have your lawyer review your case thoroughly to make sure there are no other issues. If the second EB-3 filing is denied, it should not affect the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", "\n", "######\n", "{\"_question\": \"What will happen if I try to downgrade from EB-2 to EB-3 and my new I-140 is denied? Can I still use my previously approved I-140 (EB-2)?\",\n", - "\"_answer\": \"If you submit an I-485 prematurely when the priority date of EB-2 is not current, and the EB-3 filing is denied, then the I-485 will also be denied. It is essential to have your lawyer review your case carefully to make sure there are no other issues. If the second EB-3 filing is denied, it should not have any impact on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"} \n", + "\"_answer\": \"If you file an I-485 prematurely when the priority date of EB-2 is not current, and the EB-3 filing is rejected, the I-485 will also be denied. It is important to have your lawyer review your case carefully to make sure there are no other issues. If the second EB-3 filing is denied, it should not have any effect on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"} \n", "\n", "\n", "\n", @@ -691,16 +841,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What do I need to do to get a master's degree from an accredited university to process an EB-2 green card?\", \n", - "\"_answer\": \"You need to check with your university to see which state level agency has accredited their programs in order to get an educational evaluation for an EB-2 status.\"}\n", + "{\"_question\": \"What is the process for obtaining an EB-2 green card with a master's degree from an accredited university?\",\n", + "\"_answer\": \"In order to receive an EB-2 green card with a master's degree, you must attend an accredited university. The US Department of Education maintains a list of state level agencies who can accredit programs and your university should be able to tell you who has credentials or accredited them or their programs.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the requirement for getting an EB-2 green card with a master's degree from an accredited university?\", \n", - "\"_answer\": \"You need to find out which state level agency has accredited the university's programs in order to get an educational evaluation for an EB-2 status.\"}\n", + "{\"_question\": \"What do I need to do to get an EB-2 green card with a master's degree from an accredited university?\",\n", + "\"_answer\": \"To receive an EB-2 green card with a master's degree, you must attend an accredited university. The US Department of Education has a list of state level agencies who can accredit programs and your university should be able to provide information on who has credentials or accredited them or their programs.\"}\n", "\n", "######\n", - "{\"_question\": \"What do I need to do to get an educational evaluation for an EB-2 status with a master's degree from an accredited university?\", \n", - "\"_answer\": \"You should contact your university to determine which state level agency has accredited their programs in order to get the evaluation.\"} \n", + "{\"_question\": \"How can I get an EB-2 green card with a master's degree from an accredited university?\",\n", + "\"_answer\": \"To obtain an EB-2 green card with a master's degree, you must attend an accredited university. The US Department of Education has a list of state level agencies who can accredit programs and your university should be able to tell you who has credentials or accredited them or their programs.\"} \n", "\n", "\n", "\n", @@ -709,16 +859,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to initiate a green card application while on F-1 status? I am currently on F1 OPT with employer A, and they have filed an H1B for me this year. Can my employer begin the green card process while I am in F1 status?\",\n", - "\"_answer\": \"For individuals from countries with long wait times for priority dates, such as India, China, Philippines, and Mexico, it is not recommended to start a green card application while on F-1 status. This is because F-1 does not allow for dual intent, whereas statuses like H-1, H-4, L-1, L-2, and O-1 do. If you are from a country with shorter wait times, such as Saudi Arabia, Pakistan, Nepal, or Europe, it may be possible to complete the green card process within a year under the EB-1, EB-2, or EB-3 categories.\"}\n", + "{\"_question\": \"Is it possible to initiate a green card application while on F-1 status? I am currently on F1 OPT and working for Employer A. My Employer A has filed for an H1B this year and I am waiting for the approval. Could my employer start the green card process while I am in F1 status?\",\n", + "\"_answer\": \"For individuals from countries with backlogged priority dates, such as India, China, Philippines, and Mexico, it is not recommended to initiate a green card application while on F-1 status. This is because F-1 status does not permit dual intent, whereas statuses like H-1, H-4, L-1, L-2, and O-1 do. If one files for a green card under F-1 status, they may have difficulty obtaining extensions, visa stamping, or reentry into the US. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or Europe, where priority dates are not backlogged, it may be possible to complete the green card process within a year under EB-1, EB-2, or EB-3 categories.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it a good idea to start a green card application while on F-1 status? I am currently on F1 OPT with employer A, and they have filed an H1B for me this year. Can my employer initiate the green card process while I am in F1 status?\",\n", - "\"_answer\": \"For people from countries with long wait times for priority dates, such as India, China, Philippines, and Mexico, it is not advisable to begin a green card application while on F-1 status. This is because F-1 does not permit dual intent, whereas statuses like H-1, H-4, L-1, L-2, and O-1 do. If you are from a country with shorter wait times, such as Saudi Arabia, Pakistan, Nepal, or Europe, it may be possible to finish the green card process within a year under the EB-1, EB-2, or EB-3 categories.\"}\n", + "{\"_question\": \"Can I begin the green card process while on F-1 status? I am currently on F1 OPT and working for Employer A. My Employer A has filed for an H1B this year and I am waiting for the approval. Is it possible for my employer to start the green card process while I am in F1 status?\",\n", + "\"_answer\": \"For those from countries with backlogged priority dates, such as India, China, Philippines, and Mexico, it is not advisable to start the green card process while on F-1 status. This is because F-1 status does not allow for dual intent, unlike statuses like H-1, H-4, L-1, L-2, and O-1. If one files for a green card under F-1 status, they may have difficulty obtaining extensions, visa stamping, or reentry into the US. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or Europe, where priority dates are not backlogged, it may be possible to complete the green card process within a year under EB-1, EB-2, or EB-3 categories.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it wise to initiate a green card application while on F-1 status? I am currently on F1 OPT with employer A, and they have filed an H1B for me this year. Can my employer start the green card process while I am in F1 status?\",\n", - "\"_answer\": \"For individuals from countries with long wait times for priority dates, such as India, China, Philippines, and Mexico, it is not recommended to commence a green card application while on F-1 status. This is because F-1 does not allow for dual intent, whereas statuses like H-1, H-4, L-1, L-2, and O-1 do. If you are from a country with shorter wait times, such as Saudi Arabia, Pakistan, Nepal, or Europe, it may be possible to complete the green card process within a year under the EB-1, EB-2, or EB-3 categories.\"} \n", + "{\"_question\": \"Is it feasible to initiate a green card application while on F-1 status? I am currently on F1 OPT and working for Employer A. My Employer A has filed for an H1B this year and I am waiting for the approval. Could my employer begin the green card process while I am in F1 status?\",\n", + "\"_answer\": \"For individuals from countries with backlogged priority dates, such as India, China, Philippines, and Mexico, it is not recommended to initiate a green card application while on F-1 status. This is because F-1 status does not allow for dual intent, whereas statuses like H-1, H-4, L-1, L-2, and O-1 do. If one files for a green card under F-1 status, they may have difficulty obtaining extensions, visa stamping, or reentry into the US. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or Europe, where priority dates are not backlogged, it may be possible to complete the green card process within a year under EB-1, EB-2, or EB-3 categories.\"} \n", "\n", "\n", "\n", @@ -727,16 +877,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to submit multiple green card applications at the same time? What could be the consequences?
My company has already filed my green card in the EB-2 category and my I-140 has been approved with a priority date of 2013. Can I try to apply for an EB-1 category myself? If my EB-1 application is not approved, will it have an effect on my EB-2 green card?
Should my job description be the same for both EB-1 and EB-2?
What are the potential issues that could arise?\",\n", - "\"_answer\": \"Yes, you can submit multiple green card applications simultaneously. This can be done through employment, family, or investment. As long as the applications are filed honestly, any number of green cards can be submitted.
Trying to apply for an EB-1 category yourself will not have an effect on your EB-2 green card, regardless of the outcome.
Your job description does not need to be the same for both EB-1 and EB-2.
Potential issues that could arise include delays in processing, incorrect information, or denial of the application.\"}\n", - "\n", - "######\n", - "{\"_question\": \"Is it permissible to file for multiple green cards at once? What could be the repercussions?
My employer has already submitted my green card application in the EB-2 category and my I-140 has been approved with a priority date of 2013. Could I attempt to apply for an EB-1 category on my own? If my EB-1 application is not accepted, will it have an impact on my EB-2 green card?
Should my job description be the same for both EB-1 and EB-2?
What are the potential problems that could arise?\",\n", - "\"_answer\": \"Yes, it is possible to file for multiple green cards at the same time. This can be done through employment, family, or investment. As long as the applications are filed honestly, any number of green cards can be submitted.
Attempting to apply for an EB-1 category yourself will not have an effect on your EB-2 green card, regardless of the outcome.
Your job description does not need to be the same for both EB-1 and EB-2.
Potential problems that could arise include delays in processing, incorrect information, or denial of the application.\"}\n", + "{\"_question\": \"Is it possible to submit multiple green card applications at the same time? What could be the consequences?
My employer has already filed a green card application for me in the EB-2 category and the I-140 has been approved with a priority date of 2013. Can I try to apply for an EB-1 green card on my own? If the EB-1 application is not approved, will it affect my EB-2 green card?
Should the job description be the same for both EB-1 and EB-2?
What potential issues could arise?\",\n", + "\"_answer\": \"Yes, it is possible to submit multiple green card applications simultaneously. This can include both employment and family or investment applications. As long as the applications are filed honestly, any number of green cards can be submitted.
Trying to apply for an EB-1 green card on your own will not affect your EB-2 green card, even if the EB-1 application is not approved.
The job description does not need to be the same for both EB-1 and EB-2.
Potential issues that could arise include delays in processing, incorrect information being submitted, or the application being denied.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it allowed to submit multiple green card applications at once? What could be the consequences?
My company has already filed my green card in the EB-2 category and my I-140 has been approved with a priority date of 2013. Could I try to apply for an EB-1 category myself? If my EB-1 application is not approved, will it have an effect on my EB-2 green card?
Should my job description be the same for both EB-1 and EB-2?
What are the possible issues that could arise?\",\n", - "\"_answer\": \"Yes, you can submit multiple green card applications simultaneously. This can be done through employment, family, or investment. As long as the applications are filed honestly, any number of green cards can be submitted.
Trying to apply for an EB-1 category yourself will not have an effect on your EB-2 green card, regardless of the outcome.
Your job description does not need to be the same for both EB-1 and EB-2.
Possible issues that could arise include delays in processing, incorrect information, or denial of the application.\"} \n", + "{\"_question\": \"Can multiple green cards be filed at the same time? What would be the potential repercussions?
My employer has already filed a green card application for me in the EB-2 category and the I-140 has been approved with a priority date of 2013. Can I attempt to apply for an EB-1 green card on my own? If the EB-1 application is not accepted, will it have an effect on my EB-2 green card?
Do the job descriptions need to be the same for EB-1 and EB-2?
What could be the possible problems?\",\n", + "\"_answer\": \"Yes, multiple green cards can be filed at the same time. This can include both employment and family or investment applications. As long as the applications are filed honestly, any number of green cards can be submitted.
Trying to apply for an EB-1 green card on your own will not affect your EB-2 green card, even if the EB-1 application is not accepted.
The job descriptions do not need to be the same for EB-1 and EB-2.
Possible problems that could arise include delays in processing, incorrect information being submitted, or the application being denied.\"} \n", "\n", "\n", "\n", @@ -745,16 +891,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the processing times for NIW? I'm in the EB2 category and I'm worried it will take a long time to get my EAD card and switch employers. Could there be any issues if I change employers during the process?\",\n", - "\"_answer\": \"If you are a self-applicant and will still be working in the same area of national interest, you can switch employers at any time. The NIW priority date will take the same amount of time as a regular EB2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", + "{\"_question\": \"What are the processing times for NIW? I'm in the EB2 category and I'm concerned that it may take a while before I can get my EAD card and change employers. Are there any issues if I switch employers during the process?\",\n", + "\"_answer\": \"If you are a self-applicant and will continue to work in your stated area of national interest, you can change employers at any time. However, the NIW priority date will take the same amount of time as a normal EB-2 application. See: http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", "\n", "######\n", - "{\"_question\": \"How long will the NIW process take? I'm in the EB2 category and I'm concerned it will take a long time to get my EAD card and move to a new employer. Could there be any problems if I change employers during the process?\",\n", - "\"_answer\": \"If you are a self-applicant and will still be working in the same area of national interest, you can change employers whenever you want. The NIW priority date will take the same amount of time as a regular EB2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", + "{\"_question\": \"What is the timeline for NIW? I'm in the EB2 category and I'm worried that it may take a while before I can get my EAD card and switch employers. Are there any problems if I change employers during the process?\",\n", + "\"_answer\": \"If you are a self-applicant and will still be working in your stated area of national interest, you can change employers at any time. However, the NIW priority date will take the same amount of time as a normal EB-2 application. Check out: http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the timeline for NIW? I'm in the EB2 category and I'm worried it will take a long time to get my EAD card and change employers. Could there be any issues if I switch employers during the process?\",\n", - "\"_answer\": \"If you are a self-applicant and will still be working in the same area of national interest, you can switch employers at any time. The NIW priority date will take the same amount of time as a regular EB2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"} \n", + "{\"_question\": \"How long does NIW take? I'm in the EB2 category and I'm concerned that it may take a while before I can get my EAD card and change employers. Are there any issues if I switch employers during the process?\",\n", + "\"_answer\": \"If you are a self-applicant and will remain working in your stated area of national interest, you can change employers at any time. However, the NIW priority date will take the same amount of time as a normal EB-2 application. See: http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"} \n", "\n", "\n", "\n", @@ -763,16 +909,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I got my I-140 approved and EAD with EB2 category in April 2012. I need to change my employer but they did not give me my green card papers like I-140 approval copy, labor code etc. Is there a way to obtain all my green card documents from USCIS without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to request the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). Use FOIA for the purpose you are considering.\"}\n", + "{\"_question\": \"what is the purpose of form g-884 (returns of original documents)? i had my i-140 approved and ead with eb2 category in april 2012. i do not have my green card documents such as i-140 approval copy, labor code etc. as my employer did not give them to me. i heard that i can use form g-884 to get all my green card documents from uscis. can i do this without knowing my employer?\",\n", + "\"_answer\": \"form g-884 is used to request return of documents you had sent to uscis (e.g., your collegedegrees and diplomas). use foia for the purpose you are considering.\"}\n", "\n", "######\n", - "{\"_question\": \"I was approved for my I-140 and EAD with EB2 category in April 2012. I am looking to switch employers, but they did not give me my green card documents such as the I-140 approval copy, labor code etc. Is there a way to get all my green card documents from USCIS without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to ask for the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). Utilize FOIA for the purpose you are considering.\"}\n", + "{\"_question\": \"what is the use of form g-884 (returns of original documents)? i was approved for i-140 and ead with eb2 category in april 2012. my employer did not give me my green card documents such as i-140 approval copy, labor code etc. i heard that i can use form g-884 to get all my green card documents from uscis. can i do this without knowing my employer?\",\n", + "\"_answer\": \"form g-884 is used to request return of documents you had sent to uscis (e.g., your collegedegrees and diplomas). use foia for the purpose you are considering.\"}\n", "\n", "######\n", - "{\"_question\": \"I was granted my I-140 and EAD with EB2 category in April 2012. I am looking to change employers, but they did not give me my green card documents such as the I-140 approval copy, labor code etc. Is there a way to acquire all my green card documents from USCIS without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to request the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). Employ FOIA for the purpose you are considering.\"} \n", + "{\"_question\": \"what is the purpose of form g-884 (returns of original documents)? i had my i-140 approved and ead with eb2 category in april 2012. i do not have my green card documents such as i-140 approval copy, labor code etc. as my employer did not give them to me. i heard that i can use form g-884 to get all my green card documents from uscis. can i do this without knowing my employer's information?\",\n", + "\"_answer\": \"form g-884 is used to request return of documents you had sent to uscis (e.g., your collegedegrees and diplomas). use foia for the purpose you are considering.\"} \n", "\n", "\n", "\n", @@ -781,16 +927,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I submit an adjustment of status application if my 'schedule a' application is in the 'eb-2' category?\", \n", - "\"_answer\": \"It is possible to file concurrently if the priority date for eb-2 is current and not backlogged.\"}\n", + "{\"_question\": \"Can I submit an adjustment of status application if my 'schedule a' application is in the EB-2 or employment based second preference category?\", \n", + "\"_answer\": \"Yes, you can submit the adjustment of status application concurrently with the form I-140, provided that your priority date for EB-2 is current and not backlogged.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to submit an adjustment of status application if my 'schedule a' application is in the 'eb-2' category?\", \n", - "\"_answer\": \"Yes, you can file concurrently if the priority date for eb-2 is current and not backlogged.\"}\n", + "{\"_question\": \"If I am applying for EB-2 physical therapist, can I file for adjustment of status concurrently?\", \n", + "\"_answer\": \"Yes, you can file for adjustment of status at the same time as the form I-140, provided that your priority date for EB-2 is not backlogged.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I file an adjustment of status application if my 'schedule a' application is in the 'eb-2' category?\", \n", - "\"_answer\": \"It is possible to submit concurrently if the priority date for eb-2 is current and not backlogged.\"} \n", + "{\"_question\": \"Is it possible to submit an adjustment of status application if I am applying for EB-2 physical therapist?\", \n", + "\"_answer\": \"Yes, you can submit the adjustment of status application simultaneously with the form I-140, as long as your priority date for EB-2 is current and not delayed.\"} \n", "\n", "\n", "\n", @@ -799,16 +945,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the status of Obama's immigration action with regards to I-140 stage and H-1B visa holders?\", \n", - "\"_answer\": \"There is a proposal to allow filing of I-485 at the I-140 stage, without waiting for priority dates to be current. This, if implemented, would grant an Employment Authorization Document (EAD) as well as the right to change jobs under AC21. However, there is no clear indication about this proposal in any government document yet.\"}\n", + "{\"_question\": \"What is the status of Obama's immigration action regarding I-140 stage? I am on an H-1B visa and my I-140 has been approved in the EB-2 category but I am waiting for the dates to become current. Will I be given any EAD based on the executive action?\",\n", + "\"_answer\": \"I have heard that there is a suggestion to allow filing of I-485 at the I-140 stage, without waiting for priority dates to be current. This, if implemented, would grant you an EAD as well as the right to change jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government document up to now.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the current situation regarding Obama's immigration action and I-140 stage for H-1B visa holders?\", \n", - "\"_answer\": \"There is a suggestion to permit filing of I-485 at the I-140 stage, without waiting for priority dates to be current. If this is put into effect, it would give an Employment Authorization Document (EAD) as well as the right to change jobs under AC21. Unfortunately, there is no definite information about this proposal in any government document at this time.\"}\n", + "{\"_question\": \"What is the status of Obama's immigration action with regards to I-140 stage? I am on an H-1B visa and my I-140 has been approved in the EB-2 category but I am waiting for the dates to become current. Would I be given any EAD due to the executive action?\",\n", + "\"_answer\": \"I have heard that there is a proposal to allow filing of I-485 at the I-140 stage, without waiting for priority dates to be current. This, if implemented, would provide you with an EAD as well as the right to change jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government document thus far.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the current state of Obama's immigration action in regards to I-140 stage and H-1B visa holders?\", \n", - "\"_answer\": \"There is a proposal to allow filing of I-485 at the I-140 stage, without waiting for priority dates to be current. This, if implemented, would provide an Employment Authorization Document (EAD) as well as the right to change jobs under AC21. Unfortunately, there is no explicit indication about this proposal in any government document as of now.\"} \n", + "{\"_question\": \"What is the status of Obama's immigration action in relation to I-140 stage? I am on an H-1B visa and my I-140 has been approved in the EB-2 category but I am waiting for the dates to become current. Could I be given any EAD based on the executive action?\",\n", + "\"_answer\": \"I have heard that there is a suggestion to allow filing of I-485 at the I-140 stage, without waiting for priority dates to be current. This, if implemented, would give you an EAD as well as the right to change jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government document so far.\"} \n", "\n", "\n", "\n", @@ -817,15 +963,15 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are my options to expedite the background checks for my I-485 application which has been pending for 2.5 years and current for 2.5 months?\", \n", + "{\"_question\": \"What are the options for expediting a pending I-485 application that has been in background checks for 2.5 years? Can a writ of mandamus be used to claim unreasonable delay? Can I accept a promotion with a director/managerial job title while using my EAD? Is switching to an H1-B a safe measure and what are the risks involved?\",\n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"}\n", "\n", "######\n", - "{\"_question\": \"Can I use a writ of mandamus to address the unreasonable delay of my I-485 application which has been pending for 2.5 years and current for 2.5 months?\", \n", + "{\"_question\": \"What steps can be taken to speed up a 2.5 year old I-485 application that is in background checks? Is it possible to use a writ of mandamus to argue unreasonable delay? Is it permissible to accept a promotion with a director/managerial job title while using an EAD? Is switching to an H1-B a safe option and what are the risks associated with it?\",\n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"}\n", "\n", "######\n", - "{\"_question\": \"What are the risks involved if I switch to an H1-B visa while my I-485 application is pending for 2.5 years and current for 2.5 months?\", \n", + "{\"_question\": \"What can be done to expedite a 2.5 year old I-485 application that is in background checks? Is it possible to use a writ of mandamus to demonstrate unreasonable delay? Is it permissible to take a promotion with a director/managerial job title while using an EAD? Is switching to an H1-B a secure measure and what are the risks involved?\",\n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"} \n", "\n", "\n", @@ -835,16 +981,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I use my experience with my current employer in India while filing for a PERM?\",\n", - "\"_answer\": \"Yes, you can use the experience gained with an employer who has a tax id number other than your petitioning employer.\"}\n", + "{\"_question\": \"Can I use the experience I gained with an employer who has a tax ID number other than my petitioning employer while filing for PERM?\",\n", + "\"_answer\": \"Yes, it is generally accepted to use the experience gained with an employer who has a tax ID number other than your petitioning employer when filing for PERM.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I include my experience in India with my current employer when filing for a PERM?\",\n", - "\"_answer\": \"Yes, you may utilize the experience gained with an employer who has a tax id number other than your petitioning employer.\"}\n", + "{\"_question\": \"Is it permissible to use the experience I earned with a different employer than my petitioning employer when filing for PERM?\",\n", + "\"_answer\": \"Yes, it is generally accepted to use the experience gained with an employer who has a tax ID number other than your petitioning employer when filing for PERM.\"}\n", "\n", "######\n", - "{\"_question\": \"When filing for a PERM, can I use my experience with my current employer in India?\",\n", - "\"_answer\": \"Yes, you can use the experience acquired with an employer who has a tax id number different from your petitioning employer.\"} \n", + "{\"_question\": \"Can I use the experience I obtained from a different employer than my petitioning employer when filing for PERM?\",\n", + "\"_answer\": \"Yes, it is generally accepted to utilize the experience gained with an employer who has a tax ID number other than your petitioning employer when filing for PERM.\"} \n", "\n", "\n", "\n", @@ -853,16 +999,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have two bachelor's degrees from US universities. A 3-year bachelor degree in science and a 2-year bachelor's degree in engineering. Am I eligible for an EB-2 visa with this? If I don't qualify for EB-2, should I wait another year to file EB-2 or just file EB-3 now? Do internships count when counting the number of years of work after school?\",\n", - "\"_answer\": \"Internships do count as experience. You should get your degrees evaluated under AACRAO EDGE standards first.\"}\n", + "{\"_question\": \"Do internships count when determining eligibility for an EB-2 visa? I have two bachelor's degrees from US universities, a 3-year degree in science and a 2-year degree in engineering. I have also worked for four years in my current job. Should I wait another year to apply for the EB-2 visa or should I just apply for the EB-3 visa now?\",\n", + "\"_answer\": \"Internships do count as experience. You should first have your degrees evaluated according to AACRAO EDGE standards.\"}\n", "\n", "######\n", - "{\"_question\": \"I possess two bachelor's degrees from US universities. A 3-year bachelor degree in science and a 2-year bachelor's degree in engineering. Could I be considered for an EB-2 visa with this? In the event that I don't qualify for EB-2, should I wait one more year to file EB-2 or just file EB-3 now? Do internships count when calculating the number of years of work after school?\",\n", - "\"_answer\": \"Internships are taken into account as experience. You should get your degrees evaluated under AACRAO EDGE standards first.\"}\n", + "{\"_question\": \"What should I do if I have two bachelor's degrees from US universities, a 3-year degree in science and a 2-year degree in engineering, and I have worked for four years in my current job? Should I wait another year to apply for the EB-2 visa or should I just apply for the EB-3 visa now?\",\n", + "\"_answer\": \"You should first have your degrees evaluated according to AACRAO EDGE standards. Internships do count as experience when determining eligibility for an EB-2 visa.\"}\n", "\n", "######\n", - "{\"_question\": \"I have two bachelor's degrees from US universities. A 3-year bachelor degree in science and a 2-year bachelor's degree in engineering. Am I qualified for an EB-2 visa with this? If I don't meet the requirements for EB-2, should I wait another year to file EB-2 or just file EB-3 now? Do internships count when determining the number of years of work after school?\",\n", - "\"_answer\": \"Internships are counted as experience. You need to get your degrees evaluated under AACRAO EDGE standards first.\"} \n", + "{\"_question\": \"I have two bachelor's degrees from US universities, a 3-year degree in science and a 2-year degree in engineering, and I have worked for four years in my current job. Am I eligible for an EB-2 visa? If not, should I wait another year to apply for the EB-2 visa or should I just apply for the EB-3 visa now?\",\n", + "\"_answer\": \"You should have your degrees evaluated according to AACRAO EDGE standards first. Internships do count as experience when determining eligibility for an EB-2 visa.\"} \n", "\n", "\n", "\n", @@ -871,16 +1017,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the timeline for applying for a green card if I am an L1-A visa holder with 14 years of IT experience and have been in a managerial role for the past 3 years? I manage a team of 30 people located in Chennai, Shanghai, and San Jose. Do I have the option to choose between EB-1 and EB-2? I do not have a bachelor's or master's degree, will this be an issue when applying for a green card? Can I apply for a green card myself or must it be done through my employer?\",\n", - "\"_answer\": \"You can apply for green card without any wait. Yes, but EB-1 is a gazillion times faster for indian-born people. Degree is not a requirement for international managers/execs. Your employer needs to apply.\"}\n", + "{\"_question\": \"How long do I need to wait to begin the green card process? Do I have the option to choose between EB-1 and EB-2? I don't have a bachelor's or master's degree, will that be a problem for applying for a green card? Should I only apply through my employer or can I do it myself?\",\n", + "\"_answer\": \"You can start the green card process without any delay. Yes, you can select between EB-1 and EB-2. Degree is not a requirement for international managers/executives. Your employer needs to apply.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the timeline for submitting a green card application if I am an L1-A visa holder with 14 years of IT experience and have been in a managerial role for the past 3 years? Do I have the choice to select between EB-1 and EB-2? I do not have a bachelor's or master's degree, will this be a problem when applying for a green card? Can I apply for a green card independently or must it be done through my employer?\",\n", - "\"_answer\": \"You can apply for green card without any wait. Yes, but EB-1 is a gazillion times faster for indian-born people. Degree is not a requirement for international managers/execs. Your employer needs to apply.\"}\n", + "{\"_question\": \"What is the wait time to initiate the green card process? Is there an option to pick between EB-1 and EB-2? Do I need a bachelor's or master's degree to apply for a green card? Can I submit the application myself or must it be done through my employer?\",\n", + "\"_answer\": \"You can start the green card process right away. Yes, you can decide between EB-1 and EB-2. Degree is not a requirement for international managers/executives. Your employer needs to apply.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the timeline for filing a green card application if I am an L1-A visa holder with 14 years of IT experience and have been in a managerial role for the past 3 years? Do I have the option to choose between EB-1 and EB-2? I do not have a bachelor's or master's degree, will this be a barrier for applying for a green card? Can I apply for a green card myself or must it be done through my employer?\",\n", - "\"_answer\": \"You can apply for green card without any wait. Yes, but EB-1 is a gazillion times faster for indian-born people. Degree is not a requirement for international managers/execs. Your employer needs to apply.\"} \n", + "{\"_question\": \"How long before I can begin the green card process? Is there a choice of EB-1 or EB-2? Do I need a bachelor's or master's degree to apply for a green card? Can I apply on my own or must it be done through my employer?\",\n", + "\"_answer\": \"You can start the green card process immediately. Yes, you can opt for EB-1 or EB-2. Degree is not a requirement for international managers/executives. Your employer needs to apply.\"} \n", "\n", "\n", "\n", @@ -889,16 +1035,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have a three year bachelors from India and 16 years of experience in the US. I have a pending EB-3 with a priority date of 10/2006. If I pursue a master's degree here (online or executive course), will I qualify for EB-2 or do I need to demonstrate progressive experience since getting my master's?\",\n", - "\"_answer\": \"If the master's degree is accredited, you don't need to have post-master's experience for EB-2. There may be some issues with the 3+2 pattern of education, but an accredited master's should resolve it.\"}\n", + "{\"_question\": \"If I have a three year bachelor's degree from India and 16 years of experience in the US, and I am currently in the process of an EB-3 with a priority date of 10/2006, will I qualify for EB-2 if I pursue a master's degree (online or executive course) here?\",\n", + "\"_answer\": \"If the master's degree is accredited, you should not need to demonstrate post-master's experience for EB-2. There may be some issues with the 3+2 pattern of education, but an accredited master's should resolve it.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a three year bachelors from India and 16 years of experience in the US. I have a pending EB-3 with a priority date of 10/2006. If I take a master's degree here (online or executive course), will I be eligible for EB-2 or do I need to show progressive experience since obtaining my master's?\",\n", - "\"_answer\": \"If the master's degree is accredited, you don't need post-master's experience for EB-2. There could be some issues with the 3+2 pattern of education, but an accredited master's should fix it.\"}\n", + "{\"_question\": \"I have a three year bachelor's degree from India and 16 years of experience in the US. I am currently in the process of an EB-3 with a priority date of 10/2006. If I pursue a master's degree (online or executive course) here, will I qualify for EB-2?\",\n", + "\"_answer\": \"If the master's degree is accredited, you should not have to prove post-master's experience for EB-2. There could be some issues with the 3+2 pattern of education, but an accredited master's should address it.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a three year bachelors from India and 16 years of experience in the US. I have a pending EB-3 with a priority date of 10/2006. If I get a master's degree here (online or executive course), will I qualify for EB-2 or do I need to demonstrate progressive experience since getting my master's?\",\n", - "\"_answer\": \"If the master's degree is accredited, you don't need to have post-master's experience for EB-2. There may be some issues with the 3+2 pattern of education, but an accredited master's should solve it.\"} \n", + "{\"_question\": \"I have a three year bachelor's degree from India and 16 years of experience in the US. I am currently in the process of an EB-3 with a priority date of 10/2006. Can I qualify for EB-2 if I pursue a master's degree (online or executive course) here?\",\n", + "\"_answer\": \"If the master's degree is accredited, you should not need to demonstrate post-master's experience for EB-2. There may be some issues with the 3+2 pattern of education, but an accredited master's should solve it.\"} \n", "\n", "\n", "\n", @@ -907,16 +1053,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I'm on a J-1 visa for the next four years and I'm considering applying for an EB2-NIW. Will I have any issues with travelling if I don't get the EB2?\",\n", - "\"_answer\": \"It is not definite that you will have a problem, but there is a possibility that exhibiting immigrant intent may be an issue for J-1 holders.\"}\n", + "{\"_question\": \"I have a J-1 visa that will be valid for four more years. I am considering applying for an EB2-NIW. Will I have any issues with traveling if I am denied the EB2?\",\n", + "\"_answer\": \"There is a possibility that having exhibited immigrant intent could cause problems for your J-1 visa. It is not certain, but it is a potential issue.\"}\n", "\n", "######\n", - "{\"_question\": \"I'm a J-1 holder for the next four years and I'm looking into an EB2-NIW. If I don't get the EB2, will I have any issues when I travel?\",\n", - "\"_answer\": \"It is not certain that you will have a problem, but there is a chance that showing immigrant intent could be an issue for J-1 holders.\"}\n", + "{\"_question\": \"I have a J-1 visa that is still valid for four more years. I am thinking of applying for an EB2-NIW. Could I have any difficulties with traveling if I am rejected for the EB2?\",\n", + "\"_answer\": \"It is uncertain if being denied the EB2 and showing immigrant intent could lead to issues with your J-1 visa, but it is a possibility.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a J-1 visa for the next four years and I'm thinking of applying for an EB2-NIW. If I don't get the EB2, will I have any difficulties when travelling?\",\n", - "\"_answer\": \"It is not definite that you will have a problem, but there is a potential that exhibiting immigrant intent may be an issue for J-1 holders.\"} \n", + "{\"_question\": \"I have a J-1 visa that will be valid for four more years. I am considering applying for an EB2-NIW. What could happen if I am not approved for the EB2 when it comes to traveling?\",\n", + "\"_answer\": \"There is a chance that having displayed immigrant intent could cause problems for your J-1 visa. It is not definite, but it is a potential risk.\"} \n", "\n", "\n", "\n", @@ -925,16 +1071,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I need a EB-2 visa to work as a veterinary assistant in the USA if I am from Bulgaria and have a master's degree in veterinary medicine?\",\n", - "\"_answer\": \"In order to be eligible for an EB-2 visa, two criteria must be met: 1. Your degree must be equivalent to a U.S. advanced degree (a credentials evaluation service must assess this under the proper standards); and 2. The job must require an advanced degree or equivalent experience.\"}\n", + "{\"_question\": \"Can I get an EB-2 visa if I work as a veterinary assistant in the USA and I have a master's degree in veterinary medicine from Bulgaria?\",\n", + "\"_answer\": \"In order to be eligible for an EB-2 visa, two criteria must be met: 1. Your degree must be equivalent to a U.S. advanced degree (a credentials evaluation service must assess that under the proper standards); and 2. The job must require an advanced degree or equivalent experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I get a EB-2 visa if I am from Bulgaria and have a master's degree in veterinary medicine and want to work as a veterinary assistant in the USA?\",\n", - "\"_answer\": \"You may be able to obtain an EB-2 visa if two conditions are satisfied: 1. Your degree is equal to a U.S. advanced degree (a credentials evaluation service must evaluate this under the correct standards); and 2. The job necessitates an advanced degree or equivalent experience.\"}\n", + "{\"_question\": \"Do I qualify for an EB-2 visa if I have a master's degree in veterinary medicine from Bulgaria and I am working as a veterinary assistant in the USA?\",\n", + "\"_answer\": \"You may be eligible for an EB-2 visa if two conditions are fulfilled: 1. Your degree must be equivalent to a U.S. advanced degree (a credentials evaluation service must evaluate that under the correct standards); and 2. The job must necessitate an advanced degree or equivalent experience.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am from Bulgaria and have a master's degree in veterinary medicine, can I get a EB-2 visa to work as a veterinary assistant in the USA?\",\n", - "\"_answer\": \"You may qualify for an EB-2 visa if two conditions are met: 1. Your degree is equivalent to a U.S. advanced degree (a credentials evaluation service must assess this under the appropriate standards); and 2. The job requires an advanced degree or equivalent experience.\"} \n", + "{\"_question\": \"I have a master's degree in veterinary medicine from Bulgaria and I am employed as a veterinary assistant in the USA. Am I able to get an EB-2 visa?\",\n", + "\"_answer\": \"You may qualify for an EB-2 visa if two requirements are met: 1. Your degree must be comparable to a U.S. advanced degree (a credentials evaluation service must assess that under the appropriate standards); and 2. The job must require an advanced degree or equivalent experience.\"} \n", "\n", "\n", "\n", @@ -943,16 +1089,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the best way to reach out to the USCIS Service Centers to inform them that a priority date is current, a petition has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's case?\",\n", + "{\"_question\": \"What is the best way to reach out to the USCIS Service Centers to inform them that a priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\",\n", "\"_answer\": \"Send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"}\n", "\n", "######\n", - "{\"_question\": \"How can I get in touch with the USCIS Service Centers to let them know that a priority date is current, a petition has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's case?\",\n", - "\"_answer\": \"Send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to look at.\"}\n", + "{\"_question\": \"What is the recommended method for notifying the USCIS Service Centers that a priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\",\n", + "\"_answer\": \"The best way to reach out to the USCIS Service Centers is to send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the best way to communicate with the USCIS Service Centers to inform them that a priority date is current, a petition has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's case?\",\n", - "\"_answer\": \"Send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to review.\"} \n", + "{\"_question\": \"What is the suggested approach for informing the USCIS Service Centers that a priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\",\n", + "\"_answer\": \"The best way to contact the USCIS Service Centers is to send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"} \n", "\n", "\n", "\n", @@ -961,16 +1107,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it necessary for a beneficiary petitioned for a green card under EB-2 classification to have a degree from an accredited US university?\",\n", - "\"_answer\": \"Yes, a beneficiary must have a degree from an accredited university in order to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not sufficient to show accreditation for green card purposes. To determine a university's accreditation status, please visit the website: http://ope.ed.gov/accreditation/ You may also want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", + "{\"_question\": \"Is it necessary for a beneficiary petitioned for a green card under EB-2 classification (based on a U.S. master's degree) to have a degree from an accredited U.S. university?\",\n", + "\"_answer\": \"Yes, a beneficiary must possess a degree from an accredited university in order to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not enough to demonstrate accreditation for green card purposes. The accreditation status of a university can be found on the following website: http://ope.ed.gov/accreditation/ Additionally, you may want to watch this video prepared by Mr. Khanna, \"Accreditation of Distance Education for EB-2\" and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", "\n", "######\n", - "{\"_question\": \"Do beneficiaries petitioned for a green card under EB-2 classification need to have a degree from an accredited US university?\",\n", - "\"_answer\": \"Yes, a degree from an accredited university is required for a beneficiary to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not enough to show accreditation for green card purposes. To check a university's accreditation status, please visit the website: http://ope.ed.gov/accreditation/ You may also want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", + "{\"_question\": \"Do beneficiaries petitioned for a green card under EB-2 classification (based on a U.S. master's degree) need to have a degree from an accredited U.S. university?\",\n", + "\"_answer\": \"Yes, a beneficiary must have a degree from an accredited university to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not enough to prove accreditation for green card purposes. The accreditation status of a university can be found on the following website: http://ope.ed.gov/accreditation/ Additionally, you may want to watch this video prepared by Mr. Khanna, \"Accreditation of Distance Education for EB-2\" and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", "\n", "######\n", - "{\"_question\": \"Is it a requirement for beneficiaries petitioned for a green card under EB-2 classification to have a degree from an accredited US university?\",\n", - "\"_answer\": \"Yes, a beneficiary must possess a degree from an accredited university to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not enough to show accreditation for green card purposes. To verify a university's accreditation status, please visit the website: http://ope.ed.gov/accreditation/ You may also want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"} \n", + "{\"_question\": \"Is a degree from an accredited U.S. university required for a beneficiary petitioned for a green card under EB-2 classification (based on a U.S. master's degree)?\",\n", + "\"_answer\": \"Yes, a beneficiary must possess a degree from an accredited university to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not enough to demonstrate accreditation for green card purposes. The accreditation status of a university can be found on the following website: http://ope.ed.gov/accreditation/ Additionally, you may want to watch this video prepared by Mr. Khanna, \"Accreditation of Distance Education for EB-2\" and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"} \n", "\n", "\n", "\n", @@ -979,16 +1125,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have a Master's degree in Science and I was awarded the final degree certificate by the university, but I finished the regular two-year program in only one year. Will USCIS view my M.Sc degree as incomplete?\",\n", - "\"_answer\": \"This is where the evaluators come in. We have had issues with USCIS in these types of situations. An evaluation done through the EDGE database should be enough to convince USCIS.\"}\n", + "{\"_question\": \"Did I finish my Master's degree in one year? I have a Master's degree in Science and I have been given the final degree certificate by the university, but I completed the regular 2 year program in just 1 year. Will USCIS view my M.Sc degree as incomplete?\",\n", + "\"_answer\": \"This is where the evaluators come in. We have had issues with USCIS in these situations. Evaluation done under the EDGE database should convince USCIS.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Master's in Science and I received the final degree certificate from the university, but I completed the standard two-year program in only one year. Will USCIS consider my M.Sc degree incomplete?\",\n", - "\"_answer\": \"This is where the evaluators come into play. We have had issues with USCIS in these scenarios. An evaluation done through the EDGE database should be enough to persuade USCIS.\"}\n", + "{\"_question\": \"I have a Master's degree in Science and I was awarded the final degree certificate by the university, but I finished the standard 2 year program in just 1 year. Will USCIS consider my M.Sc degree incomplete?\",\n", + "\"_answer\": \"This is where the evaluators intervene. We have had issues with USCIS in these scenarios. Evaluation done under the EDGE database should persuade USCIS.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Master's in Science and I was given the final degree certificate by the university, but I finished the regular two-year program in only one year. Will USCIS view my M.Sc degree as incomplete?\",\n", - "\"_answer\": \"This is where the evaluators come in. We have had issues with USCIS in these kinds of situations. An evaluation done through the EDGE database should be sufficient to convince USCIS.\"} \n", + "{\"_question\": \"I have a Master's degree in Science and I have been given the final degree certificate by the university, but I completed the regular 2 year program in just 1 year. Will USCIS see my M.Sc degree as incomplete?\",\n", + "\"_answer\": \"This is where the evaluators come into play. We have had issues with USCIS in these situations. Evaluation done under the EDGE database should convince USCIS.\"} \n", "\n", "\n", "\n", @@ -997,12 +1143,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What qualifications are needed for EB-2?\",\n", - "\"_answer\": \"In June 2007, the USCIS clarified what is considered to be equivalent to a U.S. master's degree for Employment-Based Category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree plus one additional year of education. Therefore, the beneficiary would also need to have five years' progressive experience. If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree, it is possible that this would be considered the equivalent to a U.S. master's degree and there would be no need to establish five years' progressive experience. 5. Three-year bachelor's degree + two-year master's degree (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference (EB-2) category. 6. Three-year bachelor's degree + two-year master's degree (India) + five years' progressive, post-master's degree experience generally, the educational degrees would be determined to be the equivalent of a U.S. bachelor's + one year and the beneficiary would meet the statutory requirement. 7. Three-year bachelor's degree + two-year master's degree + one-year postgraduate diploma (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference category (EB-2). If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree or the two-year master's degree, it is possible that this would be considered the equivalent to a U.S. master's degree, and there would be no need to establish five years' progressive experience. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty. The post-baccalaureate experience should reflect increasing or advancing levels of responsibility and knowledge in the specialty. The profession should be an occupation for which a baccalaureate degree or its foreign equivalent is the minimum requirement for the entry in the field.\"}\n", + "{\"_question\": \"What qualifications are necessary for EB-2?\",\n", + "\"_answer\": \"The USCIS clarified in June 2007 what is considered to be equivalent to a U.S. master's degree for the Employment-Based Category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. Generally, a U.S. master's degree is required, but a four-year bachelor's degree plus two-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus three-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus one-year postgraduate diploma plus two-year master's degree (India) in the same or similar field, or a three-year bachelor's degree plus two-year master's degree (India) plus five years' progressive, post-master's degree experience, or a three-year bachelor's degree plus two-year master's degree (India) plus one-year postgraduate diploma (India) may be accepted. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty.\"}\n", + "\n", + "######\n", + "{\"_question\": \"What educational credentials are accepted for EB-2?\",\n", + "\"_answer\": \"The USCIS clarified in June 2007 what is considered to be equivalent to a U.S. master's degree for the Employment-Based Category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. Generally, a U.S. master's degree is required, but a four-year bachelor's degree plus two-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus three-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus one-year postgraduate diploma plus two-year master's degree (India) in the same or similar field, or a three-year bachelor's degree plus two-year master's degree (India) plus five years' progressive, post-master's degree experience, or a three-year bachelor's degree plus two-year master's degree (India) plus one-year postgraduate diploma (India) may be accepted. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty.\"}\n", "\n", "######\n", - "{\"_question\": \"What educational qualifications are necessary for EB-2?\",\n", - "\"_answer\": \"In June 2007, the USCIS clarified what is considered to be equivalent to a U.S. master's degree for Employment-Based Category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree \n", + "{\"_question\": \"What qualifications are needed for EB-2?\",\n", + "\"_answer\": \"The USCIS clarified in June 2007 what is considered to be equivalent to a U.S. master's degree for the Employment-Based Category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. Generally, a U.S. master's degree is required, but a four-year bachelor's degree plus two-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus three-year master's degree (India) in the same or related fields, or a three-year bachelor's degree plus one-year postgraduate diploma plus two-year master's degree (India) in the same or similar field, or a three-year bachelor's degree plus two-year master's degree (India) plus five years' progressive, post-master's degree experience, or a three-year bachelor's degree plus two-year master's degree (India) plus one-year postgraduate diploma (India) may be accepted. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty.\"} \n", "\n", "\n", "\n", @@ -1011,16 +1161,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to qualify for EB-2 with a diploma, AMIE, and M.Tech, with 7 years of experience post M.Tech from a previous employer and 5 years from the current employer, even though the job requirements only mention a Bachelor's in Engineering and 5 years of experience?\",\n", - "\"_answer\": \"The AMIE is uncertain. I remember a decision from the AAO that said they won't accept AMIE, but a more recent decision was more lenient. I think it's worth a shot to try for EB-2, as the M.Tech should help.\"}\n", + "{\"_question\": \"Is it possible to qualify for EB-2 with a diploma, AMIE, and M.Tech, with 7 years of experience post M.Tech from a previous employer and 5 years from the current employer, even though the job requirement only mentions a Bachelor's in Engineering and 5 years of experience?\",\n", + "\"_answer\": \"The AMIE is uncertain. I remember a decision from the AAO that said they wouldn't recognize it, but a more recent decision was more ambiguous. In any case, I think it's worth trying for EB-2, as the M.Tech should help.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I meet the requirements for EB-2 if I have a diploma, AMIE, and M.Tech, with 7 years of experience post M.Tech from a previous employer and 5 years from the current employer, even though the job requirements only list a Bachelor's in Engineering and 5 years of experience?\",\n", - "\"_answer\": \"The AMIE is questionable. I recall an AAO decision that said they won't accept AMIE, but a more recent decision was more ambiguous. I think it's worth a try for EB-2, as the M.Tech should be beneficial.\"}\n", + "{\"_question\": \"Can I meet the requirements for EB-2 if I have a diploma, AMIE, and M.Tech, plus 7 years of experience post M.Tech from a prior employer and 5 years from the current employer, even though the job requirement only states a Bachelor's in Engineering and 5 years of experience?\",\n", + "\"_answer\": \"The AMIE is uncertain. I recall an AAO decision that said they wouldn't accept it, but a more recent decision was more uncertain. In any case, I think it's worth a shot at EB-2, as the M.Tech should be beneficial.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to qualify for EB-2 with a diploma, AMIE, and M.Tech, with 7 years of experience post M.Tech from a previous employer and 5 years from the current employer, even though the job requirements only specify a Bachelor's in Engineering and 5 years of experience?\",\n", - "\"_answer\": \"The AMIE is uncertain. I remember a decision from the AAO that said they won't recognize AMIE, but a more recent decision was more lenient. I think it's worth attempting EB-2, as the M.Tech should help.\"} \n", + "{\"_question\": \"Can I qualify for EB-2 with a diploma, AMIE, and M.Tech, plus 7 years of experience post M.Tech from a prior employer and 5 years from the current employer, even though the job requirement only mentions a Bachelor's in Engineering and 5 years of experience?\",\n", + "\"_answer\": \"The AMIE is questionable. I remember an AAO decision that said they wouldn't accept it, but a more recent decision was more uncertain. In any case, I think it's worth attempting EB-2, as the M.Tech should be beneficial.\"} \n", "\n", "\n", "\n", @@ -1029,16 +1179,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB-2 with my qualifications?\",\n", - "\"_answer\": \"Take into consideration these points: the name change of the employer does not mean the green card process has to start from the beginning, USCIS can take away your priority date if the sponsoring employer ceases operations, and the job must require 5 years of experience.\"}\n", + "{\"_question\": \"Do I qualify for EB-2? I have a 4 year bachelor's degree from India and 7 years of experience. My company has applied for a green card in EB-3 and my I-140 is approved. My priority date is September 2010. My company name has been changed and they are saying that the process has to be restarted from the PERM, but I can keep my same priority date. I asked lawyers if I'm eligible for EB-2 and they said no. My job description says a bachelor's degree and 3 or 5 years of experience, and that's why the lawyers said no. They argued that the USCIS will deny the application, indicating that the job could be done by someone with 3 years of experience. Am I qualified for EB-2?\",\n", + "\"_answer\": \"Take into account these points. First, a simple change of name of the employer does not require the green card process to be restarted. Second, if the sponsoring employer ceases operations, the USCIS can take away your priority date. Lastly, the job must require 5 years of experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB-2?\",\n", - "\"_answer\": \"Remember these points: a name change of the employer does not necessitate restarting the green card process, USCIS can revoke your priority date if the sponsoring employer stops operations, and the job must necessitate 5 years of experience.\"}\n", + "{\"_question\": \"Am I eligible for EB-2? I have a 4 year bachelor's degree from India and 7 years of experience. My company has applied for a green card in EB-3 and my I-140 is approved. My priority date is September 2010. My company name has been changed and they are saying that the process has to be restarted from the PERM, but I can keep my same priority date. I asked lawyers if I'm eligible for EB-2 and they said no. My job description says a bachelor's degree and 3 or 5 years of experience, and that's why the lawyers said no. They argued that the USCIS will deny the application, indicating that the job could be done by someone with 3 years of experience. Do I qualify for EB-2?\",\n", + "\"_answer\": \"Remember these points. Firstly, a mere alteration of the employer's name does not necessitate that the green card process be restarted. Secondly, if the sponsoring employer ceases operations, the USCIS can take away your priority date. Lastly, the job must require 5 years of experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB-2 with my background?\",\n", - "\"_answer\": \"Bear in mind these points: a name change of the employer does not mean the green card process must start over, USCIS can take away your priority date if the sponsoring employer discontinues operations, and the job must require 5 years of experience.\"} \n", + "{\"_question\": \"Am I qualified for EB-2? I have a 4 year bachelor's degree from India and 7 years of experience. My company has applied for a green card in EB-3 and my I-140 is approved. My priority date is September 2010. My company name has been changed and they are saying that the process has to be restarted from the PERM, but I can keep my same priority date. I asked lawyers if I'm eligible for EB-2 and they said no. My job description says a bachelor's degree and 3 or 5 years of experience, and that's why the lawyers said no. They argued that the USCIS will deny the application, indicating that the job could be done by someone with 3 years of experience. Am I eligible for EB-2?\",\n", + "\"_answer\": \"Keep in mind these points. First, a mere change of name of the employer does not require that the green card process be restarted. Second, if the sponsoring employer stops business operations, the USCIS can take away your priority date. Lastly, the job must require 5 years of experience.\"} \n", "\n", "\n", "\n", @@ -1047,16 +1197,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I restart the green card process under the EB-2 category if I have a Bachelor's degree from India and 8 years of work experience in the US? My labor was initially filed under EB-3 and my priority date is October 2003.\",\n", - "\"_answer\": \"It is possible to restart the green card process under the EB-2 category if you have over 5 years of experience after a 4-year degree. This would involve redoing the PERM and I-140 for an EB-2 level job.\"}\n", + "{\"_question\": \"Can I restart the green card process under the EB-2 category if I have a Bachelor's degree from India and 8 years of work experience in the US? My labor was filed in EB-3 and my priority date is October 2003, and I received my EAD in 2007.\",\n", + "\"_answer\": \"It is possible to restart the green card process under the EB-2 category if you have 5 years of experience after a 4-year degree. This would involve redoing the PERM and I-140 for an EB-2 level job, and porting your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a Bachelor's degree from India and 8 years of work experience in the US, am I eligible to port my priority date to the EB-2 category? My labor was initially filed under EB-3 and my priority date is October 2003.\",\n", - "\"_answer\": \"Those with more than 5 years of experience after a 4-year degree may be able to port their priority date to the EB-2 category. This would involve submitting a new PERM and I-140 for an EB-2 level job.\"}\n", + "{\"_question\": \"I have a Bachelor's degree from India and 8 years of work experience in the US. My labor was filed in EB-3 and my priority date is October 2003, and I received my EAD in 2007. Is it possible to restart the green card process under the EB-2 category?\",\n", + "\"_answer\": \"If you have 5 years of experience after a 4-year degree, you may be able to restart the green card process under the EB-2 category and port your priority date. This would involve filing a new PERM and I-140 for an EB-2 level job.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Bachelor's degree from India and 8 years of work experience in the US. My labor was filed under EB-3 and my priority date is October 2003. Can I restart the green card process under the EB-2 category?\",\n", - "\"_answer\": \"Individuals with more than 5 years of experience after a 4-year degree may be able to restart the green card process under the EB-2 category. This would involve filing a new PERM and I-140 for an EB-2 level job.\"} \n", + "{\"_question\": \"I have a Bachelor's degree from India and 8 years of work experience in the US. My labor was filed in EB-3 and my priority date is October 2003, and I received my EAD in 2007. Can I restart the green card process under the EB-2 category?\",\n", + "\"_answer\": \"If you have 5 years of experience after a 4-year degree, you may be able to restart the green card process under the EB-2 category and port your priority date. This would involve submitting a new PERM and I-140 for an EB-2 level job.\"} \n", "\n", "\n", "\n", @@ -1065,16 +1215,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can you bypass the perm process if you apply through the eb-2 category?\",\n", - "\"_answer\": \"You can bypass the perm requirement if you are eligible for a national interest waiver under the eb-2 category.\"}\n", + "{\"_question\": \"Can I bypass the perm requirement if I apply for an eb-2 category?\",\n", + "\"_answer\": \"You may be able to sidestep the perm requirement if you are eligible for a national interest waiver.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to skip perm if you are applying in the eb-2 category?\",\n", - "\"_answer\": \"You may be able to forgo the perm process if you qualify for a national interest waiver in the eb-2 category.\"}\n", + "{\"_question\": \"Is it possible to dodge the perm process if I go for the eb-2 category?\",\n", + "\"_answer\": \"You may be able to dodge the perm process if you qualify for a national interest waiver.\"}\n", "\n", "######\n", - "{\"_question\": \"Can you avoid the perm process if you are applying in the eb-2 category?\",\n", - "\"_answer\": \"It is possible to sidestep the perm requirement if you are eligible for a national interest waiver under the eb-2 category.\"} \n", + "{\"_question\": \"Can I evade the perm process by applying for the eb-2 category?\",\n", + "\"_answer\": \"You may be able to evade the perm process if you are eligible for a national interest waiver.\"} \n", "\n", "\n", "\n", @@ -1083,16 +1233,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the most likely way to get an EB-2 application approved quickly? Is it through a master's equivalency (a bachelor's degree evaluated by a university to be equivalent to a master's degree) or five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years of experience. Does it depend on the employer's ability to provide documents or the lawyer's attention to detail when submitting to USCIS?\",\n", - "\"_answer\": \"It all starts with the lawyers. Make sure your attorney is thorough and prepared for any possible outcome. The job must be accurately described.\"}\n", + "{\"_question\": \"What is the most likely way to get an EB-2 application approved quickly? Is it through a master's equivalency (evaluating a bachelor's degree to be equivalent to a master's) or through five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years experience. Does it depend on the employer's ability to provide documents or the lawyer's attention to detail?\",\n", + "\"_answer\": \"It all starts with the lawyer. Make sure your attorney is thorough and prepared for any possible outcome. The job must be accurately described.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the most probable way to get an EB-2 application approved quickly? Is it through a master's equivalency (a bachelor's degree evaluated by a university to be equivalent to a master's degree) or five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years of experience. Does it depend on the employer's capacity to provide documents or the lawyer's precision when submitting to USCIS?\",\n", - "\"_answer\": \"It all begins with the lawyers. Ensure your counsel is precise and plan for every potential outcome they can think of. The job must be accurately portrayed.\"}\n", + "{\"_question\": \"What is the best way to get an EB-2 application approved quickly? Is it through a master's equivalency (evaluating a bachelor's degree to be equivalent to a master's) or through five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years experience. Does it depend on the employer's capacity to provide documents or the lawyer's precision with the details submitted to USCIS?\",\n", + "\"_answer\": \"It all begins with the lawyer. Ensure your counsel is precise and plan for every potential outcome they can think of. The job must be described accurately.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the most likely way to get an EB-2 application approved quickly? Is it through a master's equivalency (a bachelor's degree evaluated by a university to be equivalent to a master's degree) or five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years of experience. Does it rely on the employer's capability to support documents or does it also depend on how meticulous the lawyer is with the details to be submitted in the uscis?\",\n", - "\"_answer\": \"It all starts with the lawyers. Make sure your attorney is meticulous and prepared for any possible outcome. The job must be described truthfully.\"} \n", + "{\"_question\": \"What is the most probable way to get an EB-2 application approved quickly? Is it through a master's equivalency (evaluating a bachelor's degree to be equivalent to a master's) or through five years of progressive experience? I know someone who was approved through the master's equivalency, even though they didn't have five years experience. Does it rely on the employer's ability to supply documents or the lawyer's attention to detail?\",\n", + "\"_answer\": \"It all starts with the lawyer. Make sure your attorney is meticulous and ready for any possible result. The job must be portrayed truthfully.\"} \n", "\n", "\n", "\n", @@ -1101,16 +1251,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for EB-2 with the same employer if I have more than 10 years of experience, including the experience with the current employer?\",\n", - "\"_answer\": \"Yes, you can submit an application for EB-2 with the same employer if the job offered is more than 50% different than the job you were performing so far.\"}\n", + "{\"_question\": \"Can I apply for EB-2 with the same employer using the experience I have gained from them?\",\n", + "\"_answer\": \"Yes, if the job you are applying for is more than 50% different than the job you were performing with the same employer.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have been with the same employer for more than 10 years, including the experience with the current employer, can I apply for EB-2?\",\n", - "\"_answer\": \"It is possible to submit an application for EB-2 with the same employer if the job offered is more than 50% different than the job you were performing so far.\"}\n", + "{\"_question\": \"Is it possible for me to apply for EB-2 with the same employer using the experience I have acquired from them?\",\n", + "\"_answer\": \"Yes, if the job you are applying for is significantly different than the job you were doing with the same employer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have been with the same employer for more than 10 years, including the experience with the current employer. Is it possible to apply for EB-2?\",\n", - "\"_answer\": \"Yes, you can submit an application for EB-2 with the same employer if the job offered is more than 50% different than the job you were performing so far.\"} \n", + "{\"_question\": \"Can I submit an application for EB-2 with the same employer based on the experience I have gained from them?\",\n", + "\"_answer\": \"Yes, if the job you are applying for is substantially different than the job you were doing with the same employer.\"} \n", "\n", "\n", "\n", @@ -1119,16 +1269,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for the EB-2 visa? I have been a professor at a major US university for 9 months (H1B). I have a physician + PhD, 16 years of professional experience in Europe, and 20 papers and 1 book. Is it too early to apply for an EB green card?\",\n", - "\"_answer\": \"You are eligible for EB2 and should apply immediately. Professors can reuse existing advertisements if they file PERM within 18 months of when the job was offered. You should also have your resume evaluated for a possible EB1 application.\"}\n", + "{\"_question\": \"Do I qualify for EB-2 or is it too soon for a green card? I'm a professor at a major US university and have been here for 9 months on an H1B. I have a physicianate and PhD, 16 years of professional experience in Europe, 20 papers, and 1 book. Am I eligible for EB2 or should I wait to apply for an EB green card?\",\n", + "\"_answer\": \"You meet the qualifications for EB2 and should submit your application as soon as possible. Professors can reuse existing ads if they file PERM within 18 months of when the job was offered to them. You should also have your resume evaluated for a simultaneous EB1 application.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I able to get an EB-2 visa? I have been a professor at a major US university for 9 months (H1B). I have a physician + PhD, 16 years of professional experience in Europe, and 20 papers and 1 book. Is it too soon to apply for an EB green card?\",\n", - "\"_answer\": \"You are certainly qualified for EB2 and should submit your application as soon as possible. Professors can reuse existing ads if they file PERM within 18 months of when the job was offered to them. You should also have your resume reviewed for a possible EB1 application.\"}\n", + "{\"_question\": \"Am I qualified for EB-2 or is it too soon for a green card? I'm a professor at a major US university and have been here for 9 months on an H1B. I have a physicianate and PhD, 16 years of professional experience in Europe, 20 papers, and 1 book. Do I qualify for EB2 or should I wait to apply for an EB green card?\",\n", + "\"_answer\": \"You are eligible for EB2 and should submit your application right away. Professors can reuse existing ads if they file PERM within 18 months of when the job was offered to them. You should also have your resume assessed for a simultaneous EB1 application.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for the EB-2 visa? I have been a professor at a major US university for 9 months (H1B). I have a physician + PhD, 16 years of professional experience in Europe, and 20 papers and 1 book. Is it too early to apply for an EB green card?\",\n", - "\"_answer\": \"You are eligible for EB2 and should apply right away. Professors can reuse existing postings if they file PERM within 18 months of when the job was offered. You should also have your resume assessed for a potential EB1 application.\"} \n", + "{\"_question\": \"Do I meet the requirements for EB-2 or is it too early for a green card? I'm a professor at a major US university and have been here for 9 months on an H1B. I have a physicianate and PhD, 16 years of professional experience in Europe, 20 papers, and 1 book. Do I meet the qualifications for EB2 or should I wait to apply for an EB green card?\",\n", + "\"_answer\": \"You fulfill the criteria for EB2 and should submit your application as soon as possible. Professors can reuse existing ads if they file PERM within 18 months of when the job was offered to them. You should also have your resume checked for a simultaneous EB1 application.\"} \n", "\n", "\n", "\n", @@ -1137,16 +1287,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"am i eligible for eb-2 ? i completed a three year bachelor's degree in computer science from india in june 2005. afterwards, i enrolled in a master of computer applications program (m.c.a) in india in august 2005 (3 year program). while still in the master's program, i started a full-time job in a software company in january 2006. i received my master of computer applications (3 year degree) in 2008, and stayed with the same company for a full-time job until december 2010 (5 years). after that, i moved to the US and have been working with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i qualify for eb-2?\",\n", - "\"_answer\": \"you qualify.\"}\n", - "\n", - "######\n", - "{\"_question\": \"am i eligible for eb-2 ? i obtained a three year bachelor's degree in computer science from india in june 2005. then, i began a master of computer applications program (m.c.a) in india in august 2005 (3 year program). while still in the master's program, i began a full-time job in a software company in january 2006. i was given my master of computer applications (3 year degree) in 2008, and stayed with the same company for a full-time job until december 2010 (5 years). after that, i moved to the US and have been employed with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i meet the requirements for eb-2?\",\n", - "\"_answer\": \"you qualify.\"}\n", + "{\"_question\": \"am i eligible for eb-2 ? i completed a three year bachelor of computer science degree from india in june 2005. i then enrolled in a master of computer applications program (m.c.a) in india in aug 2005 (3 year program). while still in the masters program, i started a full time job in a software company in jan 2006. i was awarded the master of computer applications degree (3 year program) in 2008. i worked with the same company in a full time job until dec 2010 (5 years). after that, i moved to the US and have been working with a US-based company for 7 months as a full time employee (total experience 5 years 7 months). do i meet the requirements for eb-2?\",\n", + "\"_answer\": \"yes, you are eligible.\"}\n", "\n", "######\n", - "{\"_question\": \"am i qualified for eb-2 ? i earned a three year bachelor's degree in computer science from india in june 2005. then, i joined a master of computer applications program (m.c.a) in india in august 2005 (3 year program). while still in the master's program, i started a full-time job in a software company in january 2006. i was awarded my master of computer applications (3 year degree) in 2008, and stayed with the same company for a full-time job until december 2010 (5 years). after that, i moved to the US and have been working with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i qualify for eb-2?\",\n", - "\"_answer\": \"you qualify.\"} \n", + "{\"_question\": \"am i qualified for eb-2 ? i earned a three year bachelor of computer science degree from india in june 2005. then i began a master of computer applications program (m.c.a) in india in aug 2005 (3 year program). while still in the masters program, i started a full time job in a software company in jan 2006. i was awarded the master of computer applications degree (3 year program) in 2008. i worked with the same company in a full time job until dec 2010 (5 years). after that, i moved to the US and have been working with a US-based company for 7 months as a full time employee (total experience 5 years 7 months). do i fit the criteria for eb-2?\",\n", + "\"_answer\": \"you fulfill the requirements.\"} \n", "\n", "\n", "\n", @@ -1155,31 +1301,34 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the possibilities of getting an EB2 visa with a B.Sc.? I have a B.Sc. from Israel (06/2002) and started my M.Sc. at the same time I was working as a QA Engineer (1.5 years) and was checking exercises and exams in university. I stopped my M.Sc. in the middle and joined the company I am currently working for. After 3 years I was relocated to the US and have been here for 4 years. I am now considering applying for a green card. The law firm my company works with has suggested I pursue an EB3 path. What are my chances of getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development in Israel, and 4 years of development in the US?\", \n", - "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree in order to be eligible for an EB2 visa. Incomplete degrees are not taken into consideration.\"}\n", + "{\"_question\": \"What are the odds of me getting an EB2 visa with my qualifications? I have a B.Sc. from Israel (06/2002) and I started a M.Sc. at the same time I was working as a QA engineer (1.5 years). I stopped my M.Sc. in the middle and joined the company I am currently working for. After 3 years I was relocated to the US and have been here for 4 years. My company's law firm has decided that I should be on the EB3 path. What are my chances of getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development experience in Israel, and 4 years of development experience in the US?\", \n", + "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree. Incomplete degrees are not accepted for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the odds of me getting an EB2 visa with my B.Sc.? I obtained my B.Sc. from Israel in 06/2002 and was working as a QA Engineer at the same time (1.5 years) and was checking exercises and exams in university. I left my M.Sc. unfinished and joined the company I am currently employed by. After 3 years I relocated to the US and have been here for 4 years. I am now thinking about applying for a green card. The law firm my company works with has suggested I pursue an EB3 path. What are my chances of getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development in Israel, and 4 years of development in the US?\", \n", - "\"_answer\": \"Your degree must be comparable to a US Bachelor's degree to be eligible for an EB2 visa. Unfinished degrees are not taken into account.\"}\n", + "{\"_question\": \"What is the likelihood of me obtaining an EB2 visa with my background? I have a B.Sc. from Israel (06/2002) and I was employed as a QA engineer (1.5 years) while I was studying for a M.Sc. I discontinued my M.Sc. and joined the company I am currently employed by. After 3 years I was transferred to the US and have been here for 4 years. My company's law firm has suggested that I should pursue the EB3 path. What are the chances of me getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development experience in Israel, and 4 years of development experience in the US?\", \n", + "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree. Unfinished degrees are not eligible for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the prospects of me getting an EB2 visa with my B.Sc.? I earned my B.Sc. from Israel in 06/2002 and was employed as a QA Engineer at the same time (1.5 years) and was checking exercises and exams in university. I abandoned my M.Sc. and joined the company I am currently working for. After 3 years I moved to the US and have been here for 4 years. I am now considering applying for a green card. The law firm my company works with has suggested I pursue an EB3 path. What are my chances of getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development in Israel, and 4 years of development in the US?\", \n", - "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree in order to be eligible for an EB2 visa. Incomplete degrees are not taken into consideration.\"} \n", + "{\"_question\": \"What are the prospects of me receiving an EB2 visa with my qualifications? I have a B.Sc. from Israel (06/2002) and I was simultaneously working as a QA engineer (1.5 years) while I was studying for a M.Sc. I abandoned my M.Sc. and joined the company I am currently employed by. After 3 years I was relocated to the US and have been here for 4 years. My company's law firm has suggested that I should pursue the EB3 path. What are the chances of me getting an EB2 visa with my B.Sc. from Israel, 1.5 years of QA experience in Israel, 3 years of development experience in Israel, and 4 years of development experience in the US?\", \n", + "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree. Incomplete degrees are not accepted for EB2.\"} \n", "\n", "\n", "\n", "37 \n", "\n", "\n", + "\n", "######\n", - "{\"_question\": \"Can I use my experience prior to August 2010 for EB-2 qualification?\",\n", - "\"_answer\": \"You can use the experience with the same employer only if the job you used to perform and the job you will perform after the green card are more than 50% different, but continuous employment is not necessary.\"}\n", + "{\"_question\": \"Can I use my prior experience for EB-2 qualification?\",\n", + "\"_answer\": \"You can use the experience with the same employer only if the job you used to perform and the job you will perform after the green card are more than 50% different, though continuous employment is not necessary.\"}\n", + "\n", "######\n", - "{\"_question\": \"Can I use my experience from before August 2010 for EB-2 eligibility?\",\n", - "\"_answer\": \"You can use the experience with the same employer only if the job you used to do and the job you will do after the green card are more than 50% different, but you don't need to have been continuously employed.\"}\n", + "{\"_question\": \"Do I need to be continuously employed to use my experience for EB-2 qualification?\",\n", + "\"_answer\": \"No, you don't need to be continuously employed, but the job you used to perform and the job you will perform after the green card must be more than 50% different in order to use the experience with the same employer.\"}\n", + "\n", "######\n", - "{\"_question\": \"Can I use my experience from before August 2010 to qualify for EB-2?\",\n", - "\"_answer\": \"You can use the experience with the same employer only if the job you used to do and the job you will do after the green card are more than 50% different, but it is not necessary to have been employed continuously.\"} \n", + "{\"_question\": \"Can I use my experience from before I rejoined my current employer for EB-2 qualification?\",\n", + "\"_answer\": \"Yes, you can use the experience with the same employer as long as the job you used to perform and the job you will perform after the green card are more than 50% different, regardless of continuous employment.\"} \n", "\n", "\n", "\n", @@ -1188,16 +1337,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I retain my priority date if I switch jobs after my I-140 application is approved?\", \n", - "\"_answer\": \"Yes, you can keep the priority date as long as the sponsoring employer does not revoke your I-140, go out of business, or USCIS does not revoke the I-140 for fraud.\"}\n", + "{\"_question\": \"If I change employers after my I-140 approval, can I keep my priority date from my current employer? Is it possible for them to withdraw my application in a way that I lose my priority date?\",\n", + "\"_answer\": \"Yes, you can keep the priority date as long as the sponsoring employer does not revoke your I-140, go out of business, or USCIS does not revoke the I-140 or find fraud. No, the current company cannot withdraw your application in a way that would make you lose your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"If I move to a new company after my I-140 approval, can I still keep my priority date?\", \n", - "\"_answer\": \"Yes, you can maintain your priority date as long as the sponsoring employer does not cancel your I-140, go out of business, or USCIS does not revoke the I-140 for fraud.\"}\n", + "{\"_question\": \"If I move to a new company after my I-140 approval, can I retain my priority date from my current employer? Is there a way for them to withdraw my application that would cause me to lose my priority date?\",\n", + "\"_answer\": \"Yes, you can keep the priority date as long as the sponsoring employer does not revoke your I-140, go out of business, or USCIS does not revoke the I-140 or find fraud. No, the current company cannot withdraw your application in a way that would make you lose your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"If I change employers after my I-140 is approved, will I still have my priority date?\", \n", - "\"_answer\": \"Yes, you can preserve your priority date as long as the sponsoring employer does not revoke your I-140, go out of business, or USCIS does not revoke the I-140 for fraud.\"} \n", + "{\"_question\": \"If I switch jobs after my I-140 approval, can I maintain my priority date from my current employer? Is there a possibility for them to withdraw my application that would result in me losing my priority date?\",\n", + "\"_answer\": \"Yes, you can keep the priority date as long as the sponsoring employer does not revoke your I-140, go out of business, or USCIS does not revoke the I-140 or find fraud. No, the current company cannot withdraw your application in a way that would make you lose your priority date.\"} \n", "\n", "\n", "\n", @@ -1206,16 +1355,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What costs can an employee cover for an employment-based green card application in the EB2 category?\",\n", - "\"_answer\": \"The employer is legally obligated to pay for all expenses related to the PERM process, but not the other parts of the green card application.\"}\n", + "{\"_question\": \"What are the costs associated with an employment-based green card application in the EB2 category?\",\n", + "\"_answer\": \"The employer is obligated to pay for all expenses related to the PERM process, but not the other stages of the green card process.\"}\n", "\n", "######\n", - "{\"_question\": \"Can an employee pay for the entire green card application process in the EB2 category, including attorney's fees, filing fees, advertising fees, EAD, and advance parole fees?\",\n", - "\"_answer\": \"The employer is responsible for covering the expenses related to the PERM process, but not the other parts of the green card application.\"}\n", + "{\"_question\": \"If I am applying for an employment-based green card in the EB2 category, can I pay for the entire process?\",\n", + "\"_answer\": \"No, the employer is legally responsible for covering the costs of the PERM process, but not the other parts of the green card process.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the employer's responsibility when it comes to the expenses for an employment-based green card application in the EB2 category?\",\n", - "\"_answer\": \"The employer must pay for all costs associated with the PERM process, but not the other parts of the green card application.\"} \n", + "{\"_question\": \"What fees must be paid for an employment-based green card application in the EB2 category?\",\n", + "\"_answer\": \"The employer is required to pay for all expenses related to the PERM process, but not the other components of the green card process.\"} \n", "\n", "\n", "\n", @@ -1224,16 +1373,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB-2 if I have a 3 year Bachelor's degree in Computer Science and a 2 year Master's degree in Information Technology, and I have been working in my current job since July 2008? My career began in January 2000.\", \n", - "\"_answer\": \"Yes, you could qualify for EB-2 under the Bachelor's degree plus 5 years of progressive experience.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB-2 with my educational background and work experience?\",\n", + "\"_answer\": \"Yes, you could qualify for EB-2 with your Bachelor's degree plus five years of progressive experience.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3 year Bachelor's degree in Computer Science and a 2 year Master's degree in Information Technology, and I have been employed since July 2008. My career began in January 2000. Am I eligible for EB-2? Could you explain if I fit into the category of 3 year Bachelor's degree plus 2 year Master's degree equaling a Bachelor's degree plus 1 year and needing 5 years of progressive experience to qualify for EB-2?\", \n", - "\"_answer\": \"Yes, you meet the requirements for EB-2 under the Bachelor's degree plus 5 years of progressive experience.\"}\n", + "{\"_question\": \"Do I have the qualifications to apply for EB-2?\",\n", + "\"_answer\": \"Yes, with a Bachelor's degree and five years of progressive work experience, you would be eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3 year Bachelor's degree in Computer Science and a 2 year Master's degree in Information Technology, and I have been working in my current job since July 2008. My career began in January 2000. Do I qualify for EB-2? Can you explain if I fit into the category of 3 year Bachelor's degree plus 2 year Master's degree equaling a Bachelor's degree plus 1 year and needing 5 years of progressive experience to qualify for EB-2?\", \n", - "\"_answer\": \"Yes, you are eligible for EB-2 under the Bachelor's degree plus 5 years of progressive experience.\"} \n", + "{\"_question\": \"Am I able to apply for EB-2 with my educational and professional background?\",\n", + "\"_answer\": \"Yes, with a Bachelor's degree and five years of progressive work experience, you would be qualified for EB-2.\"} \n", "\n", "\n", "\n", @@ -1242,12 +1391,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I include skills I acquired while working for the company sponsoring my green card in the job description for the EB-2? I have been with the company for 2.5 years and some of the experiences/skills required in the job description were acquired while working with this company.\",\n", - "\"_answer\": \"It is permissible to use after-acquired skills if the job you had before and the green card job are more than 50% different.\"}\n", + "{\"_question\": \"Can I include skills I've acquired while working for the company sponsoring my green card in the job description for the EB-2? Do I need to have already had those skills?\",\n", + "\"_answer\": \"It is permissible to include skills acquired after beginning work with the sponsoring company, as long as the job for the green card is more than 50% different from the previous job.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I allowed to include skills I obtained while employed by the company sponsoring my green card in the job description for the EB-2? I have been with the company for 2.5 years and some of the experiences/skills required in the job description were acquired while working with this company.\",\n", - "\"_answer\": \"It is possible to utilize after-acquired skills only if the job in the past and the green card job are more than 50% dissimilar.\"} \n", + "{\"_question\": \"If I've been employed by the company sponsoring my green card for the past 2.5 years, can I list the skills I've gained while working there on the job description for the EB-2? Do I need to have had those skills beforehand?\",\n", + "\"_answer\": \"Yes, it is valid to include those skills on the job description, as long as the job for the green card is more than 50% different from the job you had before.\"} \n", "\n", "\n", "\n", @@ -1256,16 +1405,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I start the green card process while on OPT? I recently graduated and have been working for two months. I have two years of IT experience in India. Is the green card process dependent on H1B?\",\n", - "\"_answer\": \"This is something that your lawyer will need to evaluate. Generally, there is nothing stopping you from filing a PERM application while on OPT and an EB2 appears to be a possibility.\"}\n", + "{\"_question\": \"Can I apply for a green card while on OPT status? I recently graduated and have been working with a company for two months. Is it possible to file for an EB2? I have two years of IT experience in India. If not, do I have to wait until I get an H1B? Is the green card process dependent on the H1B?\",\n", + "\"_answer\": \"This requires a legal assessment of your case. Generally, nothing prevents you from filing a PERM application while on OPT and an EB2 appears to be a possibility.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible to apply for a green card while on OPT? I graduated last summer and have been employed for two months. I have two years of IT experience in India. Does the green card process rely on H1B?\",\n", - "\"_answer\": \"This requires your lawyer to assess the situation. Generally, you can file a PERM application while on OPT and an EB2 may be possible.\"}\n", + "{\"_question\": \"Am I eligible to file for a green card with my current employer while I'm on OPT? Can I apply for an EB2? I have two years of IT experience in India. If not, do I have to wait until I get an H1B? Is the green card process dependent on the H1B?\",\n", + "\"_answer\": \"This requires a legal evaluation of your case. Generally, there is nothing stopping you from filing a PERM application while on OPT and an EB2 appears to be a viable option.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I initiate the green card process while on OPT? I just finished my master's degree and have been working for two months. I have two years of IT experience in India. Is the green card process dependent on H1B?\",\n", - "\"_answer\": \"This is something that your lawyer will have to assess. Generally, nothing prevents you from filing a PERM application while on OPT and an EB2 appears feasible.\"} \n", + "{\"_question\": \"Can I submit a green card application while I'm on OPT? I recently graduated and have been working with a company for two months. Is it possible to file for an EB2? I have two years of IT experience in India. If not, do I have to wait until I get an H1B? Is the green card process dependent on the H1B?\",\n", + "\"_answer\": \"This requires a legal assessment of your case. Generally, nothing prevents you from filing a PERM application while on OPT and an EB2 appears to be a feasible option.\"} \n", "\n", "\n", "\n", @@ -1274,16 +1423,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I switch from EB3 to EB2?\",\n", - "\"_answer\": \"Yes, it is feasible to change your category from EB3 to EB2, however the green card process will have to be restarted from the PERM stage.\"}\n", + "{\"_question\": \"Can I switch my category from EB3 to EB2?\",\n", + "\"_answer\": \"Yes, but the green card process will have to be restarted from the PERM stage.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it doable to upgrade from EB3 to EB2?\",\n", - "\"_answer\": \"It is achievable, however the green card process must be restarted from the PERM level.\"}\n", + "{\"_question\": \"Is it feasible to change my EB3 status to EB2?\",\n", + "\"_answer\": \"Yes, but the green card application must be restarted from the PERM stage.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to move from EB3 to EB2?\",\n", - "\"_answer\": \"Yes, it is possible, however the green card application must be initiated again from the PERM stage.\"} \n", + "{\"_question\": \"Can I alter my EB3 classification to EB2?\",\n", + "\"_answer\": \"Yes, however the green card process must be initiated again from the PERM stage.\"} \n", "\n", "\n", "\n", @@ -1292,16 +1441,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"is it possible to apply for green card in eb-2 category? i have a bachelor's degree from india, a two-year diploma from niit (in h1 and l1 they considered my diploma as a master degree), and 10 years of experience. could i apply for a green card in the eb2 category?\",\n", - "\"_answer\": \"diplomas are hard to predict. i don't think eb-2 is likely.\"}\n", + "{\"_question\": \"is it possible to apply for a green card in the eb-2 category? i have a bsc from india plus a two year diploma from niit (in h1 and l1 they considered my diploma as a master degree). i also have 10 years of experience. can i apply for a green card in the eb2 category?\",\n", + "\"_answer\": \"it's hard to say with diplomas. i don't think eb-2 is likely.\"}\n", "\n", "######\n", - "{\"_question\": \"am i able to apply for a green card in the eb-2 category? i have a bachelor's degree from india, a two-year diploma from niit (in h1 and l1 they considered my diploma as a master degree), and 10 years of experience. is it possible to get a green card in the eb2 category?\",\n", - "\"_answer\": \"diplomas are hard to gauge. i don't think eb-2 is feasible.\"}\n", + "{\"_question\": \"am i able to apply for a green card in the eb-2 category? i have a bsc from india plus a two year diploma from niit (in h1 and l1 they considered my diploma as a master degree). i also have 10 years of experience. is it possible to apply for a green card in the eb2 category?\",\n", + "\"_answer\": \"it's hard to tell with diplomas. i don't think eb-2 is probable.\"}\n", "\n", "######\n", - "{\"_question\": \"can i submit an application for a green card in the eb-2 category? i have a bachelor's degree from india, a two-year diploma from niit (in h1 and l1 they considered my diploma as a master degree), and 10 years of experience. is it possible to apply for a green card in the eb2 category?\",\n", - "\"_answer\": \"diplomas are difficult to assess. i don't think eb-2 is doable.\"} \n", + "{\"_question\": \"can i submit an application for a green card in the eb-2 category? i have a bsc from india plus a two year diploma from niit (in h1 and l1 they considered my diploma as a master degree). i also have 10 years of experience. am i able to submit an application for a green card in the eb2 category?\",\n", + "\"_answer\": \"it's hard to determine with diplomas. i don't think eb-2 is feasible.\"} \n", "\n", "\n", "\n", @@ -1310,15 +1459,15 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor's degree in Computer Science from India and 7.5 years of experience in the same field. Can I apply for a Green Card in the EB2 category?\",\n", - "\"_answer\": \"It looks like you are eligible for EB-2.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor of Engineering (4 years) in Computer Science from India and 7.5 years of work experience in the same field. Can I apply for a Green Card in the EB2 category?\",\n", + "\"_answer\": \"You appear to be eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I have a Bachelor's degree in Computer Science from India and 7.5 years of experience in the same field. Can I apply for a Green Card in the EB2 category?\",\n", - "\"_answer\": \"You seem to meet the criteria for EB-2.\"}\n", + "{\"_question\": \"Do I qualify for EB2? I have a Bachelor of Engineering (4 years) in Computer Science from India and 7.5 years of experience in the relevant field. Can I submit a Green Card application in the EB2 category?\",\n", + "\"_answer\": \"You appear to be qualified for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a Bachelor's degree in Computer Science from India and 7.5 years of experience in the same field. Am I able to apply for a Green Card in the EB2 category?\",\n", + "{\"_question\": \"Am I suitable for EB2? I have a Bachelor of Engineering (4 years) in Computer Science from India and 7.5 years of experience in the related field. Am I able to apply for a Green Card in the EB2 category?\",\n", "\"_answer\": \"You appear to be qualified for EB-2.\"} \n", "\n", "\n", @@ -1328,16 +1477,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the criteria for EB-2 category eligibility? I am currently employed as a Mechanical Engineer with one of the largest companies and I am transitioning to a Product Development Engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree that took four years to complete, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Am I eligible for the EB-2 category?\",\n", - "\"_answer\": \"The minimum requirements for the job are two years of experience, so you do qualify for the EB-2 category.\"}\n", + "{\"_question\": \"Am I eligible for the EB-2 category? I am currently employed as a Mechanical Engineer at one of the largest companies and am transitioning to a Product Development Engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree from four years ago, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Do I qualify for the EB-2 category?\",\n", + "\"_answer\": \"The job requires a minimum of two years of experience, so you do not qualify for the EB-2 category.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for the EB-2 category? I'm currently employed as a Mechanical Engineer at one of the largest companies and I'm transitioning to a Product Development Engineer role with the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree that took four years to finish, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Do I meet the criteria for EB-2 category eligibility?\",\n", - "\"_answer\": \"The job requires a minimum of two years of experience, so you do qualify for the EB-2 category.\"}\n", + "{\"_question\": \"Do I meet the criteria for the EB-2 category? I am currently employed as a Mechanical Engineer at one of the largest companies and am transitioning to a Product Development Engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree from four years ago, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Am I eligible for the EB-2 category?\",\n", + "\"_answer\": \"The job requires a minimum of two years of experience, so you are not eligible for the EB-2 category.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for the EB-2 category? I'm currently employed as a Mechanical Engineer with one of the largest companies and I'm transitioning to a Product Development Engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree that took four years to obtain, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Am I eligible for the EB-2 category?\",\n", - "\"_answer\": \"The job requires a minimum of two years of experience, so you are eligible for the EB-2 category.\"} \n", + "{\"_question\": \"Do I qualify for the EB-2 category? I am currently employed as a Mechanical Engineer at one of the largest companies and am transitioning to a Product Development Engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree from four years ago, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a Mechanical Engineer. Can I be considered for the EB-2 category?\",\n", + "\"_answer\": \"The job requires a minimum of two years of experience, so you do not meet the criteria for the EB-2 category.\"} \n", "\n", "\n", "\n", @@ -1346,16 +1495,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for EB-2 with my 3 year bachelor's degree in computer science and 2 year master's degree in computer science from India?\",\n", - "\"_answer\": \"It is a possibility, however your lawyer should determine which path is most suitable for you: evaluate the two degrees to be equivalent to a bachelor's and use bachelor's plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", + "{\"_question\": \"Can I apply for EB-2 with my 3 years bachelors in computer science and 2 years masters in computer science from India?\",\n", + "\"_answer\": \"It is possible, however your lawyer must decide which route is the best for you: evaluate the two degrees to be equal to a bachelors and use bachelors plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3 year bachelor's degree in computer science and a 2 year master's degree in computer science from India. My education evaluation says master's. Is it feasible to apply for EB-2?\",\n", - "\"_answer\": \"It is possible, but your attorney should decide which route is best for you: assess the two degrees to be equal to a bachelor's and use bachelor's plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", + "{\"_question\": \"Do I qualify for EB-2 with my 3 years bachelors in computer science and 2 years masters in computer science from India?\",\n", + "\"_answer\": \"It is a possibility, but your attorney must determine which route is the most suitable for you: evaluate the two degrees to be equivalent to a bachelors and use bachelors plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3 year bachelor's degree in computer science and a 2 year master's degree in computer science from India. My education evaluation says master's. Can I apply for EB-2?\",\n", - "\"_answer\": \"It is doable, but your legal representative should decide which course is most suitable for you: evaluate the two degrees to be equivalent to a bachelor's and use bachelor's plus 5 years for EB-2 or just use the master's degree (risky).\"} \n", + "{\"_question\": \"If I have 3 years bachelors in computer science and 2 years masters in computer science from India, can I apply for EB-2?\",\n", + "\"_answer\": \"It is feasible, but your legal representative must evaluate which route is the most advantageous for you: assess the two degrees to be equal to a bachelors and use bachelors plus 5 years for EB-2 or just use the master's degree (risky).\"} \n", "\n", "\n", "\n", @@ -1364,20 +1513,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for an EB-2 visa with a four-year degree in civil engineering and thirteen years of experience in the IT industry?\",\n", - "\"_answer\": \"It is possible to qualify for an EB-2 visa\"}\n", + "{\"_question\": \"Do I meet the requirements for an EB-2 visa with a four-year degree in civil engineering and thirteen years of documented experience in the IT industry?\",\n", + "\"_answer\": \"Yes, you may qualify for an EB-2 visa\"}\n", "\n", "######\n", - "{\"_question\": \"Can I get an EB-2 visa with my qualifications?\",\n", - "\"_answer\": \"You may be eligible for an EB-2 visa\"}\n", + "{\"_question\": \"Am I eligible for an EB-2 visa with a four-year degree in civil engineering and thirteen years of experience in the IT sector?\",\n", + "\"_answer\": \"It is possible to be eligible for an EB-2 visa\"}\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for an EB-2 visa with my background?\",\n", - "\"_answer\": \"You could be eligible for an EB-2 visa\"}\n", - "\n", - "######\n", - "{\"_question\": \"Do I have the qualifications for an EB-2 visa?\",\n", - "\"_answer\": \"It is possible to qualify for an EB-2 visa\"} \n", + "{\"_question\": \"Can I get an EB-2 visa with a four-year degree in civil engineering and thirteen years of documented experience in the IT industry?\",\n", + "\"_answer\": \"You may be able to obtain an EB-2 visa\"} \n", "\n", "\n", "\n", @@ -1386,16 +1531,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I need to get a master's degree for USCIS to accept my credentials?\",\n", - "\"_answer\": \"Yes, USCIS does not accept a CA as education. You should speak with a credentials evaluation agency about getting a master's degree.\"}\n", + "{\"_question\": \"What about accredited degrees? I have a two-year B.Com from my home country, plus a CA. I have 10 years of accounting experience and a CPA. My firm's lawyers refused to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA (accounting and finance) based on my B.Com and CA. But the lawyers insisted that for the green card process, USCIS won't consider the CA.\",\n", + "\"_answer\": \"Your lawyers are correct that the CA is not accepted as education by USCIS. Speak with a credentials evaluation agency about potential master's degrees.\"}\n", "\n", "######\n", - "{\"_question\": \"What type of degree do I need to get USCIS to accept my credentials?\",\n", - "\"_answer\": \"USCIS does not accept a CA as education. You should contact a credentials evaluation agency to learn more about getting a master's degree.\"}\n", + "{\"_question\": \"What about accredited degrees? I have a two-year B.Com from my home country, plus a CA. I have 10 years of accounting experience and a CPA. My firm's lawyers refused to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA (accounting and finance) based on my B.Com and CA. But the lawyers insisted that for the green card process, USCIS won't consider the CA.\",\n", + "\"_answer\": \"Your lawyers are accurate in saying that the CA is not accepted as education by USCIS. Consult with a credentials evaluation agency about potential master's degrees.\"}\n", "\n", "######\n", - "{\"_question\": \"What should I do if USCIS does not accept my CA?\",\n", - "\"_answer\": \"You should reach out to a credentials evaluation agency to explore getting a master's degree, as USCIS does not accept a CA as education.\"} \n", + "{\"_question\": \"What about accredited degrees? I have a two-year B.Com from my home country, plus a CA. I have 10 years of accounting experience and a CPA. My firm's lawyers refused to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA (accounting and finance) based on my B.Com and CA. But the lawyers insisted that for the green card process, USCIS won't consider the CA.\",\n", + "\"_answer\": \"Your lawyers are right that the CA is not accepted as education by USCIS. Talk to a credentials evaluation agency about possible master's degrees.\"} \n", "\n", "\n", "\n", @@ -1404,16 +1549,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to switch jobs and submit PERM and I-140 under EB-2? Can I switch jobs and submit PERM and I-140 under EB2 instead of EB3 with the new employer? How risky is the situation? I can stay with my current employer, but it will take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", - "\"_answer\": \"You can file I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any issue with transferring the priority date if you file an EB-2 through a new employer. As to risk, that needs to be evaluated by your lawyers.\"}\n", + "{\"_question\": \"Is it possible to switch jobs and submit a PERM and I-140 under EB-2 instead of EB3 with a new employer? How dangerous is this? I could stay with my current employer, but it would take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can file I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any issue in transferring the priority date if you file an EB-2 through a new employer. As for the risk, that needs to be evaluated by your lawyers.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I able to change jobs and submit PERM and I-140 under EB-2? Can I change jobs and submit PERM and I-140 under EB2 instead of EB3 with the new employer? How dangerous is the situation? I can stay with my current employer, but it will take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", - "\"_answer\": \"You can file I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any problem with transferring the priority date if you file an EB-2 through a new employer. As to danger, that needs to be evaluated by your lawyers.\"}\n", + "{\"_question\": \"Can I switch jobs and file PERM and I-140 under EB-2 instead of EB3 with a new employer? How risky is this? I could stay with my current employer, but it would take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can submit I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't observe any problem in transferring the priority date if you file an EB-2 through a new employer. As far as the risk is concerned, that needs to be evaluated by your lawyers.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I switch jobs and file PERM and I-140 under EB-2? Can I switch jobs and file PERM and I-140 under EB2 instead of EB3 with the new employer? How hazardous is the situation? I can stay with my current employer, but it will take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", - "\"_answer\": \"You can file I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any difficulty with transferring the priority date if you file an EB-2 through a new employer. As to hazard, that needs to be evaluated by your lawyers.\"} \n", + "{\"_question\": \"Is it feasible to change jobs and file PERM and I-140 under EB-2 instead of EB3 with a new employer? How hazardous is this? I could remain with my current employer, but it would take another 3 years to get my green card under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can submit I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any difficulty in transferring the priority date if you file an EB-2 through a new employer. As for the risk, that needs to be evaluated by your lawyers.\"} \n", "\n", "\n", "\n", @@ -1422,16 +1567,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I qualify for EB-2 if I have a master's in biomedical engineering and work as a senior consultant in a company that implements EQMS for biologics, med device and pharma companies?\",\n", - "\"_answer\": \"It is possible that you could meet the requirements for EB-2 depending on your qualifications and the job description. If you leave before the I-140 is approved, you may not receive any benefit from the process. However, if you leave after the I-140 is approved, you can take your priority date with you.\"}\n", + "{\"_question\": \"Can I qualify for EB-2 if I have a master's degree in biomedical engineering and work as a senior consultant for a company that implements EQMS for biologics, medical device, and pharma companies?\",\n", + "\"_answer\": \"It is possible that you could qualify for EB-2 depending on your qualifications and the job requirements. If you leave before I-140 is approved, you may not receive any benefit from the process. However, if you leave after I-140 approval, you can use your priority date to move forward.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a master's in biomedical engineering and am employed as a senior consultant in a company that implements EQMS for biologics, med device and pharma companies, could I be eligible for EB-2?\",\n", - "\"_answer\": \"It is possible that you could be eligible for EB-2 depending on your qualifications and the job requirements. If you depart before the I-140 is approved, you may not gain anything from the process. But if you leave after the I-140 is approved, you can take your priority date with you.\"}\n", + "{\"_question\": \"I have a master's degree in biomedical engineering and I am a senior consultant for a company that implements EQMS for biologics, medical device, and pharma companies. Could I be eligible for EB-2 if I apply for my green card?\",\n", + "\"_answer\": \"It is possible that you could be eligible for EB-2 depending on your qualifications and the job requirements. If you leave before I-140 is approved, you may not gain anything from the process. But if you leave after I-140 approval, you can use your priority date to progress.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a master's in biomedical engineering and work as a senior consultant in a company that implements EQMS for biologics, med device and pharma companies, am I able to apply for EB-2?\",\n", - "\"_answer\": \"It is possible that you could qualify for EB-2 depending on your qualifications and the job description. If you leave before the I-140 is approved, you may not get any benefit from the process. However, if you leave after the I-140 is approved, you can take your priority date with you.\"} \n", + "{\"_question\": \"I have a master's degree in biomedical engineering and I am a senior consultant for a company that implements EQMS for biologics, medical device, and pharma companies. If I apply for my green card, will I qualify for EB-2?\",\n", + "\"_answer\": \"It is possible that you could qualify for EB-2 depending on your qualifications and the job requirements. If you depart before I-140 is approved, you may not benefit from the process. However, if you leave after I-140 approval, you can take your priority date to move forward.\"} \n", "\n", "\n", "\n", @@ -1440,16 +1585,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I switch jobs after I-140 approval? I am in the fifth year of my H1 visa. My current employer has filed for my permanent residency under the EB-3 category, even though I do not have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Can I wait for I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on my H1 with a future employer?\",\n", - "\"_answer\": \"It is possible and common for a second employer to get an H-1 extension based on the I-140 approval of the first employer. You should discuss the specifics with an attorney.\"}\n", + "{\"_question\": \"Can I switch jobs after I-140 approval? I'm in my fifth year of H1. My current employer has filed for my permanent residency under the EB-3 category, even though I don't have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Can I wait for I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on H1 with a future employer?\",\n", + "\"_answer\": \"It is possible and common for a new employer (Employer B) to get an H-1 extension based on the I-140 approval of the previous employer (Employer A). You should discuss the details with an attorney.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I change jobs after I-140 is approved? I am in the fifth year of my H1 visa. My current employer has filed for my permanent residency under the EB-3 category, even though I do not have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Is it possible to wait for I-140 approval, get a three year extension with my current employer, and then move to a different job? Will I be able to get three more years on my H1 with a future employer?\",\n", - "\"_answer\": \"It is feasible and common for a second employer to receive an H-1 extension based on the I-140 approval of the first employer. You should consult a lawyer about the details.\"}\n", + "{\"_question\": \"Can I change jobs after I-140 is approved? I'm in my fifth year of H1. My current employer has filed for my green card under the EB-3 category, even though I don't have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Can I wait for I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on H1 with a future employer?\",\n", + "\"_answer\": \"It is possible and common for a new employer (Employer B) to receive an H-1 extension based on the I-140 approval of the previous employer (Employer A). You should consult with an attorney about the details.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I switch jobs after I-140 is accepted? I am in the fifth year of my H1 visa. My current employer has filed for my permanent residency under the EB-3 category, even though I do not have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Is it possible to wait for I-140 approval, get a three year extension with my current employer, and then change jobs? Will I be able to get three more years on my H1 with a future employer?\",\n", - "\"_answer\": \"It is doable and common for a second employer to acquire an H-1 extension based on the I-140 approval of the first employer. You should talk to a lawyer about the particulars.\"} \n", + "{\"_question\": \"Can I move jobs after I-140 is approved? I'm in my fifth year of H1. My current employer has filed for my permanent residency under the EB-3 category, even though I don't have five years of experience (EB-3 has a six year backlog, but EB-2 is current for me). Can I wait for I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on H1 with a future employer?\",\n", + "\"_answer\": \"It is possible and common for a new employer (Employer B) to obtain an H-1 extension based on the I-140 approval of the previous employer (Employer A). You should speak to a lawyer about the details.\"} \n", "\n", "\n", "\n", @@ -1458,16 +1603,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Should I wait for a promotion before beginning the green card process in order to qualify for EB-2? Does my company need to specify a Bachelor's degree plus five years of experience or a Master's degree plus two years of experience for the senior level? Is either acceptable?\", \n", - "\"_answer\": \"It is best to consult with your legal team to decide when to start the filing process. For EB-2, either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience is required to qualify.\"}\n", + "{\"_question\": \"Do I need to wait for a promotion before starting the green card process to qualify for EB-2? Is a Bachelor's degree plus five years of post-Bachelor experience or a Master's degree plus two years of experience sufficient for a Senior level position? Does the job description need to specify Bachelor's plus five years or Master's plus two years?\",\n", + "\"_answer\": \"It is best to consult with your lawyers to determine the best timing for filing. For EB-2, either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience is required to qualify.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I need to wait for a promotion before filing EB-2? What are the requirements for a senior level position - Bachelor's degree plus five years of experience or Master's degree plus two years of experience? Is either acceptable?\", \n", - "\"_answer\": \"It is best to speak with your lawyers to determine the timing of the filing. For EB-2, you must have either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience to qualify.\"}\n", + "{\"_question\": \"When should I begin the green card process to qualify for EB-2? Is a Bachelor's degree plus five years of post-Bachelor experience or a Master's degree plus two years of experience enough for a Senior level position? Does the job description need to specify Bachelor's plus five years or Master's plus two years?\",\n", + "\"_answer\": \"It is best to consult with your lawyers to decide when to file. For EB-2, either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience is necessary to qualify.\"}\n", "\n", "######\n", - "{\"_question\": \"Should I delay the green card process until I get a promotion to qualify for EB-2? What are the requirements for a senior level position - Bachelor's degree plus five years of experience or Master's degree plus two years of experience? Is either sufficient?\", \n", - "\"_answer\": \"It is advisable to consult with your legal team to decide when to start the filing process. For EB-2, either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience is necessary to qualify.\"} \n", + "{\"_question\": \"Should I wait for a promotion before starting the green card process to qualify for EB-2? Is a Bachelor's degree plus five years of post-Bachelor experience or a Master's degree plus two years of experience enough for a Senior level position? Does the job description need to specify Bachelor's plus five years or Master's plus two years?\",\n", + "\"_answer\": \"It is best to speak with your lawyers to determine the best timing for filing. For EB-2, either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience is required to qualify.\"} \n", "\n", "\n", "\n", @@ -1476,16 +1621,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which is in the required job description.\",\n", - "\"_answer\": \"It depends. If the diploma is postgraduate (not available for undergraduates) and accepted, you may be eligible for EB-2.\"}\n", + "{\"_question\": \"Do I qualify for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) as well as 10 years of experience, 7.5 of which are in the required job description.\",\n", + "\"_answer\": \"It depends. If the diploma is postgraduate (not available to undergraduates) and accepted, you may be eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which is in the required job description.\",\n", - "\"_answer\": \"It depends. If the diploma is postgraduate (not available for undergraduates) and recognized, you may be qualified for EB-2.\"}\n", + "{\"_question\": \"Am I eligible for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which are in the required job description.\",\n", + "\"_answer\": \"It depends. If the diploma is postgraduate (not available to undergraduates) and accepted, you may be able to qualify for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which is in the required job description.\",\n", - "\"_answer\": \"It depends. If the diploma is postgraduate (not available for undergraduates) and acknowledged, you may be eligible for EB-2.\"} \n", + "{\"_question\": \"Can I get EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which are in the required job description.\",\n", + "\"_answer\": \"It depends. If the diploma is postgraduate (not available to undergraduates) and accepted, you may be eligible for EB-2.\"} \n", "\n", "\n", "\n", @@ -1494,16 +1639,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead (managing 5-20 people). My M.Sc. was evaluated as equivalent to a US Master's Degree for H1 visa approval. Can I apply for EB2?\",\n", - "\"_answer\": \"If your Bachelor's and Master's degrees are related to your current job, you should be eligible for EB2.\"}\n", + "{\"_question\": \"Do I qualify for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead, managing 5-20 people. My M.Sc. was evaluated as equivalent to a US Master's degree for H1 visa approval. Am I eligible?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are in the same field and are related to your current job, then you should be able to apply for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead (managing 5-20 people). My M.Sc. was evaluated as equivalent to a US Master's Degree for H1 visa approval. Am I qualified?\",\n", - "\"_answer\": \"If your Bachelor's and Master's degrees are related to your current work, you should be able to apply for EB2.\"}\n", + "{\"_question\": \"Am I able to apply for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead, managing 5-20 people. My M.Sc. was evaluated as equivalent to a US Master's degree for H1 visa approval. Is this sufficient?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are in the same field and are related to your current job, then you should be able to apply for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead (managing 5-20 people). My M.Sc. was evaluated as equivalent to a US Master's Degree for H1 visa approval. Can I be approved?\",\n", - "\"_answer\": \"If your Bachelor's and Master's degrees are related to your job, you should be able to get EB2.\"} \n", + "{\"_question\": \"Can I apply for EB2? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have 9 years of experience as a Technical Architect/Lead, managing 5-20 people. My M.Sc. was evaluated as equivalent to a US Master's degree for H1 visa approval. Do I qualify?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are in the same field and are related to your current job, then you should be able to apply for EB-2.\"} \n", "\n", "\n", "\n", @@ -1512,16 +1657,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I switch from EB3 to EB2 with my current employer?\",\n", - "\"_answer\": \"In theory, it is possible to transfer from EB3 to EB2 with your current employer. However, you should consult with a lawyer to discuss the practical implications of this decision.\"}\n", + "{\"_question\": \"Can I switch from an EB3 to an EB2 green card through portability? My EB3 I-485 is still pending with a priority date of 06/2006. My employer is willing to file a new EB2 as I have an Indian equivalent master's degree (3+3 years) and more experience as well as increased job responsibilities. What is the minimum wage for the EB2 category? Will my current company experience count for the new EB2 category? Any advice on the EB2 job responsibilities?\",\n", + "\"_answer\": \"In theory, this is a possibility. As for the practical implications, you should consult with the lawyers who will be handling your second green card application.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to transition from EB3 to EB2 with my current employer?\",\n", - "\"_answer\": \"It is theoretically possible to make the switch from EB3 to EB2 with your current employer. You should speak with a lawyer to discuss the practical implications of this move.\"}\n", + "{\"_question\": \"Is it feasible to switch from an EB3 to an EB2 green card through portability? My EB3 I-485 is still pending with a priority date of 06/2006. My employer is willing to file a new EB2 as I have an Indian equivalent master's degree (3+3 years) and more experience as well as increased job responsibilities. What is the minimum wage for the EB2 category? Will my current company experience count for the new EB2 category? Any tips on the EB2 job responsibilities?\",\n", + "\"_answer\": \"In theory, this is doable. As for the practical implications, you should speak with the lawyers who will be representing you in the second green card process.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the minimum wage for EB2 category and can I move from EB3 to EB2 with my current employer?\",\n", - "\"_answer\": \"It is possible to transfer from EB3 to EB2 with your current employer, however, you should consult with a lawyer to discuss the practical implications of this decision. The minimum wage for the EB2 category varies depending on the location.\"} \n", + "{\"_question\": \"Can I transfer from an EB3 to an EB2 green card through portability? My EB3 I-485 is still pending with a priority date of 06/2006. My employer is willing to file a new EB2 as I have an Indian equivalent master's degree (3+3 years) and more experience as well as increased job responsibilities. What is the minimum wage for the EB2 category? Will my current company experience count for the new EB2 category? Any advice on the EB2 job responsibilities?\",\n", + "\"_answer\": \"In theory, this is achievable. As for the practical implications, you must consult with the lawyers who will be managing your second green card application.\"} \n", "\n", "\n", "\n", @@ -1531,15 +1676,15 @@ "\n", "######\n", "{\"_question\": \"Do I meet the criteria for EB2 with my MS in Electrical Engineering and 3 years of experience?\",\n", - " \"_answer\": \"Yes, you are eligible for EB2, unless the job requirements are lower than a Bachelor's degree and 5 years of experience.\"}\n", + "\"_answer\": \"Yes, you are eligible for EB2, unless the job requirements are lower than a Bachelor's degree plus 5 years of experience.\"}\n", "\n", "######\n", "{\"_question\": \"Am I qualified for EB2 with my MS in Electrical Engineering and 3 years of experience?\",\n", - " \"_answer\": \"Yes, you fulfill the criteria for EB2, unless the job requirements are lower than a Bachelor's degree and 5 years of experience.\"}\n", + "\"_answer\": \"Yes, you fulfill the requirements for EB2, unless the job demands are less than a Bachelor's degree plus 5 years of experience.\"}\n", "\n", "######\n", "{\"_question\": \"Do I qualify for EB2 with my MS in Electrical Engineering and 3 years of experience?\",\n", - " \"_answer\": \"Yes, you are qualified for EB2, unless the job requirements are less than a Bachelor's degree and 5 years of experience.\"} \n", + "\"_answer\": \"Yes, you satisfy the criteria for EB2, unless the job specifications are less than a Bachelor's degree plus 5 years of experience.\"} \n", "\n", "\n", "\n", @@ -1548,16 +1693,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 if I have a Master's in Computer Science from the US and 6 months of experience?\",\n", + "{\"_question\": \"Do I qualify for EB2 with a Master's in Computer Science?\",\n", "\"_answer\": \"It depends if the job requires a Master's degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2 if I have a Master's in Computer Science from the US and 6 months of experience?\",\n", + "{\"_question\": \"Am I eligible for EB2 with a Master's in Computer Science and 6 months experience?\",\n", "\"_answer\": \"It depends if the job necessitates a Master's degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I get EB2 if I have a Master's in Computer Science from the US and 6 months of experience?\",\n", - "\"_answer\": \"It depends if the job demands a Master's degree.\"} \n", + "{\"_question\": \"Can I get EB2 with a Master's in Computer Science and 6 months experience?\",\n", + "\"_answer\": \"It depends if the job requires a Master's degree.\"} \n", "\n", "\n", "\n", @@ -1567,15 +1712,15 @@ "\n", "######\n", "{\"_question\": \"What are the odds of me obtaining a green card through the EB-2 category after I finish my PhD and get a job in the industry?\",\n", - "\"_answer\": \"It looks like you have a good chance of getting a green card through the EB-2 category.\"}\n", + "\"_answer\": \"It looks like your chances of getting a green card through EB-2 are quite good.\"}\n", "\n", "######\n", - "{\"_question\": \"I am in the last year of my PhD in semiconductor devices at a US university. I have done my MS from the same university and have around 5 first author publications. What are the chances of me getting a green card through the EB-2 category right after I get a job in the industry?\",\n", - "\"_answer\": \"It appears that your chances of getting a green card through the EB-2 category are quite good.\"}\n", + "{\"_question\": \"What is the likelihood of me being able to acquire a green card through the EB-2 route after I complete my PhD and secure a job in the industry?\",\n", + "\"_answer\": \"It appears that your prospects of obtaining a green card through EB-2 are quite favorable.\"}\n", "\n", "######\n", - "{\"_question\": \"I am in the final year of my PhD in semiconductor devices at a US university. I have done my MS from the same university and have around 5 first author publications. What are the prospects of me getting a green card through the EB-2 category once I get a job in the industry?\",\n", - "\"_answer\": \"It looks like you have a good prospect of getting a green card through the EB-2 category.\"} \n", + "{\"_question\": \"What are the prospects of me getting a green card through the EB-2 route once I finish my PhD and find a job in the industry?\",\n", + "\"_answer\": \"Your chances of getting a green card through EB-2 seem quite good.\"} \n", "\n", "\n", "\n", @@ -1584,16 +1729,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to transfer my PD from EB3 to EB2? I filed my PERM under EB3 category on October 1st, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is it possible to keep my EB3 file running in parallel? Is there a way to transfer my PD from EB3 to EB2 after I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest if I can change my employer now to file for EB2 or not?\",\n", - "\"_answer\": \"It is not possible to have two PERM applications for the same individual for different jobs with the same company. However, you cannot transfer your PD until the I-140 is approved. I do not see any issue with changing jobs right away. You may have just enough time.\"}\n", + "{\"_question\": \"Is it possible to transfer my PD for EB3 to a new EB2 application? I filed my PERM under the EB3 category on October 1st, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is there a way to keep my EB3 file running in parallel if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest if I can change my employer now to file for EB2?\",\n", + "\"_answer\": \"It is not possible to have two PERM applications for the same individual from the same company. However, if you have a valid explanation, there is no law that prohibits it. You cannot transfer your PD until the I-140 is approved. I believe you have enough time to change jobs now.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I move my PD from EB3 to EB2? I submitted my PERM under EB3 category on October 1st, 2008 and was audited. According to the current PERM dates, they are processing audits from August 2008. Is it possible to file with the same employer under EB2? Can I keep my EB3 file running in parallel? Is there a way to move my PD from EB3 to EB2 after I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you advise if I can switch my employer now to file for EB2 or not?\",\n", - "\"_answer\": \"It is not feasible to have two PERM applications for the same individual for different jobs with the same company. However, you cannot transfer your PD until the I-140 is approved. I do not see any issue with changing jobs immediately. You may have just enough time.\"}\n", + "{\"_question\": \"Is it feasible to move my EB3 priority date to a new EB2 application? I submitted my PERM under the EB3 category on October 1st, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I submit with the same employer under EB2? Is there a way to keep my EB3 file running in parallel if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you advise if I can switch my employer now to file for EB2?\",\n", + "\"_answer\": \"Having two PERM applications for the same individual from the same company is not possible. However, if you have a valid explanation, there is no law that forbids it. You cannot transfer your PD until the I-140 is approved. I think you have enough time to change jobs now.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to transfer my PD from EB3 to EB2? I filed my PERM under EB3 category on October 1st, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is it possible to keep my EB3 file running in parallel? Is there a way to transfer my PD from EB3 to EB2 after I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest if I can change my employer now to file for EB2 or not?\",\n", - "\"_answer\": \"It is not possible to have two PERM applications for the same individual for different jobs with the same company. However, you cannot move your PD until the I-140 is approved. I do not see any issue with switching jobs right away. You may have just enough time.\"} \n", + "{\"_question\": \"Is it feasible to transfer my EB3 priority date to a new EB2 application? I filed my PERM under the EB3 category on October 1st, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I submit with the same employer under EB2? Is there a way to keep my EB3 file running in parallel if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest if I can change my employer now to file for EB2?\",\n", + "\"_answer\": \"Having two PERM applications for the same individual from the same company is not possible. However, if you have a valid explanation, there is no law that prohibits it. You cannot move your PD until the I-140 is approved. I believe you have enough time to switch jobs now.\"} \n", "\n", "\n", "\n", @@ -1602,16 +1747,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2?\",\n", - "\"_answer\": \"It is unlikely that you qualify for EB2 based on your qualifications, but it is best to have your lawyers review it.\"}\n", + "{\"_question\": \"Am I qualified for EB2 with a 3-year bachelor's degree, certification as a software architect, 15+ years of experience (including current employer) and a salary of over 100k?\",\n", + "\"_answer\": \"It is unlikely that you would qualify for EB2 under the exceptional ability category, but have your lawyers review the situation.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2?\",\n", - "\"_answer\": \"It is unlikely that you are eligible for EB2 with your 3-year bachelor's degree, certified software architect, 15+ years of experience, and 100k+ salary, but it is best to have your lawyers review it.\"}\n", + "{\"_question\": \"Do I meet the criteria for EB2 with my 3-year bachelor's degree, software architect certification, 15+ years of experience (including current employer) and a salary of over 100k?\",\n", + "\"_answer\": \"It is unlikely that you would be eligible for EB2 under the exceptional ability category, but have your lawyers review the details.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I have a chance of getting EB2?\",\n", - "\"_answer\": \"It is unlikely that you can get EB2 given your qualifications, but it is best to have your lawyers review it.\"} \n", + "{\"_question\": \"Given my 3-year bachelor's degree, software architect certification, 15+ years of experience (including current employer) and a salary of over 100k, do I qualify for EB2 under exceptional ability?\",\n", + "\"_answer\": \"It is unlikely that you would be approved for EB2 under the exceptional ability category, but have your lawyers review the situation.\"} \n", "\n", "\n", "\n", @@ -1620,16 +1765,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for EB2 (Schedule A) to bypass the labor certification step if my PERM application was recently denied due to layoffs in my company?\",\n", - "\"_answer\": \"If you are qualified, you can submit a Schedule A application without any delay. The PERM denial or layoffs should not affect your application in any way.\"}\n", + "{\"_question\": \"Can I apply for EB2 (Schedule A) to bypass the labor certification step if my PERM application was recently denied due to a layoff in my company?\",\n", + "\"_answer\": \"If you meet the qualifications, you can submit a Schedule A application without delay. There should be no issues arising from the PERM denial or layoffs.\"}\n", "\n", "######\n", - "{\"_question\": \"I was recently laid off and my PERM application was denied. Can I use EB2 (Schedule A) to avoid the labor certification step?\",\n", - "\"_answer\": \"If you are eligible, you can submit a Schedule A application right away. The PERM denial or layoffs should not have any impact on your application.\"}\n", + "{\"_question\": \"I was recently laid off and my PERM application was denied. Can I apply for EB2 (Schedule A) to avoid the labor certification process?\",\n", + "\"_answer\": \"If you are eligible, you can submit a Schedule A application right away. The PERM denial or layoffs should not cause any problems.\"}\n", "\n", "######\n", - "{\"_question\": \"My PERM application was denied due to a layoff in my company. Can I use EB2 (Schedule A) to bypass the labor certification step?\",\n", - "\"_answer\": \"If you meet the requirements, you can file a Schedule A application immediately. The PERM denial or layoffs should not be a problem for your application.\"} \n", + "{\"_question\": \"My PERM application was denied due to a layoff in my company. Can I apply for EB2 (Schedule A) to bypass the labor certification step?\",\n", + "\"_answer\": \"If you qualify, you can file a Schedule A application immediately. There should be no issues stemming from the PERM denial or layoffs.\"} \n", "\n", "\n", "\n", @@ -1639,15 +1784,15 @@ "\n", "######\n", "{\"_question\": \"Do I qualify for EB2? I have a B.Tech in engineering from India and 13+ years of experience in IT. I am currently working as an IT Architect and my company is ready to process my green card. Am I eligible?\",\n", - "\"_answer\": \"It appears that you meet the requirements for EB-2, given that your B.Tech is a four-year degree.\"}\n", + "\"_answer\": \"It appears that you meet the requirements for EB2, given that your B.Tech is a 4-year degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I able to get an EB2? I have a B.Tech in engineering from India and 13+ years of experience in IT. I am currently an IT Architect and my company is ready to process my green card. Can I qualify?\",\n", - "\"_answer\": \"It looks like you are eligible for EB-2, assuming your B.Tech is a four-year degree.\"}\n", + "{\"_question\": \"Can I get an EB2? I have a B.Tech in engineering from India and 13+ years of experience in IT. I am currently an IT Architect and my company is ready to process my green card. Am I qualified?\",\n", + "\"_answer\": \"It looks like you are eligible for EB2, as long as your B.Tech is a 4-year degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I get an EB2? I have a B.Tech in engineering from India and 13+ years of experience in IT. I am an IT Architect and my company is ready to process my green card. Am I qualified?\",\n", - "\"_answer\": \"It appears that you meet the requirements for EB-2, given that your B.Tech is a four-year degree.\"} \n", + "{\"_question\": \"Am I able to get an EB2? I have a B.Tech in engineering from India and 13+ years of experience in IT. I am an IT Architect now and my company is ready to process my green card. Do I qualify?\",\n", + "\"_answer\": \"It seems that you meet the criteria for EB2, provided that your B.Tech is a 4-year degree.\"} \n", "\n", "\n", "\n", @@ -1656,16 +1801,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for an EB-2 visa if I have a 4 year US bachelor's degree and a 2 year master's degree in chemical engineering, have been working on an H-1B visa for the same US university as a research associate for 2 years, and have 2-3 pending publications with me as a secondary author?\",\n", - "\"_answer\": \"Yes, you are eligible for an EB-2 visa. Whether or not a promotion is necessary is something that your lawyer and the employer must decide. Any position that requires a master's or bachelor's degree and 5 years of progressively responsible experience qualifies for an EB-2 filing.\"}\n", + "{\"_question\": \"Do I meet the requirements for an EB-2 visa if I have a 4 year US Bachelor's degree, a 2 year Master's degree in Chemistry, and have been working on an H-1B visa for the same US university as a research associate for 2 years, even though my publications (2-3) are still pending and I am secondary on most of them?\",\n", + "\"_answer\": \"Yes, you qualify for an EB-2 visa. Whether or not a promotion is necessary is something that your lawyer and employer will need to decide. Any position that requires a Master's or Bachelor's degree and 5 years of progressively responsible experience is eligible for an EB-2 filing.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 4 year US bachelor's degree and a 2 year master's degree in chemical engineering, have been working on an H-1B visa for the same US university as a research associate for 2 years, and have 2-3 pending publications with me as a secondary author. Am I qualified for an EB-2 visa?\",\n", - "\"_answer\": \"Yes, you meet the requirements for an EB-2 visa. Whether or not a promotion is necessary is something that your lawyer and the employer must decide. Any position that requires a master's or bachelor's degree and 5 years of progressively responsible experience is eligible for an EB-2 filing.\"}\n", + "{\"_question\": \"I have a 4 year US Bachelor's degree, a 2 year Master's degree in Chemistry, and have been working on an H-1B visa for the same US university as a research associate for 2 years, and my publications (2-3) are still pending and I am secondary on most of them. Am I eligible for an EB-2 visa?\",\n", + "\"_answer\": \"Yes, you meet the requirements for an EB-2 visa. Whether or not a promotion is necessary is something that your lawyer and employer will need to determine. Any position that requires a Master's or Bachelor's degree and 5 years of progressively responsible experience is eligible for an EB-2 filing.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 4 year US bachelor's degree and a 2 year master's degree in chemical engineering, have been working on an H-1B visa for the same US university as a research associate for 2 years, and have 2-3 pending publications with me as a secondary author. Do I qualify for an EB-2 visa?\",\n", - "\"_answer\": \"Yes, you are eligible for an EB-2 visa. Whether or not a promotion is required is something that your lawyer and the employer must decide. Any position that necessitates a master's or bachelor's degree and 5 years of progressively responsible experience is suitable for an EB-2 filing.\"} \n", + "{\"_question\": \"I have a 4 year US Bachelor's degree, a 2 year Master's degree in Chemistry, and have been working on an H-1B visa for the same US university as a research associate for 2 years, and my publications (2-3) are still pending and I am secondary on most of them. Do I qualify for an EB-2 visa?\",\n", + "\"_answer\": \"Yes, you are eligible for an EB-2 visa. Whether or not a promotion is required is something that your lawyer and employer will need to decide. Any position that requires a Master's or Bachelor's degree and 5 years of progressively responsible experience is eligible for an EB-2 filing.\"} \n", "\n", "\n", "\n", @@ -1674,11 +1819,11 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I completed my BSc in Computer Science from St. Xaviers Mumbai, followed by an MCA from REC Trichy. I have 7 years of work experience in the IT industry and my company is filing my green card. Is this enough to qualify for EB2?\",\n", + "{\"_question\": \"Am I qualified for EB2? I completed my BSc in Computer Science from St. Xaviers Mumbai and then my MCA from REC Trichy. I have 7 years of experience in the IT industry and my company is filing my GC. Is this enough?\",\n", "\"_answer\": \"Yes, you meet the requirements for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a BSc in Computer Science from St. Xaviers Mumbai and an MCA from REC Trichy. I have 7 years of experience in the IT industry and my employer is filing my green card. Am I eligible for EB2?\",\n", + "{\"_question\": \"Do I qualify for EB2? I have a BSc in Computer Science from St. Xaviers Mumbai and an MCA from REC Trichy. I have 7 years of experience in the IT field and my employer is submitting my GC. Is this enough?\",\n", "\"_answer\": \"Yes, you are eligible for EB2.\"} \n", "\n", "\n", @@ -1688,16 +1833,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for an EB-2 green card if I have a BSc and a BTech, both 3 years long, and 8 years of experience?\",\n", - "\"_answer\": \"It is usually not allowed to combine two 3-year bachelor's degrees, so it is unlikely you would qualify for EB-2.\"}\n", + "{\"_question\": \"Do I meet the requirements for an EB-2 green card if I have a 3 year Bachelor's degree in Science and a 3 year Bachelor's degree in Technology from India, plus 8 years of experience?\",\n", + "\"_answer\": \"It is usually not allowed to combine two 3-year Bachelor's degrees, so it is unlikely that you would qualify for an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a 3-year BSc and a 3-year BTech, plus 8 years of experience, am I eligible to apply for an EB-2 green card if the job requires a MS or BS plus 5 years of experience?\",\n", - "\"_answer\": \"Generally, it is not accepted to put together two 3-year bachelor's degrees. Therefore, it appears unlikely that you would qualify for an EB-2.\"}\n", + "{\"_question\": \"I have a 3 year Bachelor's degree in Science and a 3 year Bachelor's degree in Technology from India, plus 8 years of experience. Am I eligible to apply for a green card under the EB-2 category if the position requires a Master's degree or a Bachelor's degree plus 5 years of experience?\",\n", + "\"_answer\": \"Generally, combining two 3-year Bachelor's degrees is not allowed. Therefore, it is unlikely that you would qualify for an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB-2 green card if I have a 3-year BSc and a 3-year BTech, plus 8 years of experience, and the job requires a MS or BS plus 5 years of experience?\",\n", - "\"_answer\": \"It is usually not allowed to combine two 3-year bachelor's degrees, so it is unlikely you would meet the requirements for an EB-2.\"} \n", + "{\"_question\": \"I have a 3 year Bachelor's degree in Science and a 3 year Bachelor's degree in Technology from India, plus 8 years of experience. Will I be able to get a green card under the EB-2 category if the position requires a Master's degree or a Bachelor's degree plus 5 years of experience?\",\n", + "\"_answer\": \"It is usually not possible to combine two 3-year Bachelor's degrees, so it appears unlikely that you would be eligible for an EB-2 green card.\"} \n", "\n", "\n", "\n", @@ -1706,16 +1851,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility criteria for EB2 or EB3 if I have 7 years of experience with a 3-year bachelor's degree and a 2-year master's degree from India? The job for which my green card is being filed requires a bachelor's degree and 6 years of experience.\",\n", - "\"_answer\": \"Generally, if the bachelor's and master's degrees are in the same or similar fields, you should be able to combine them to reach the 4-year degree requirement for EB2. You should have a good chance of qualifying for EB2.\"}\n", + "{\"_question\": \"Do I qualify for EB2 or EB3 with my 7 years of experience and 3 year bachelor's degree plus 2 year master's degree from India?\",\n", + "\"_answer\": \"It is likely that you would be able to combine your bachelor's and master's degrees to qualify for EB2, since they are in the same or similar fields.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility for EB2 or EB3 if I have 7 years of experience with a 3-year bachelor's degree and a 2-year master's degree from India? The position for which my green card is being filed requires a bachelor's degree and 6 years of experience.\",\n", - "\"_answer\": \"In most cases, if the bachelor's and master's degrees are in the same or similar fields, you should be able to combine them to reach the 4-year degree requirement for EB2. You should have a good chance of being eligible for EB2.\"}\n", + "{\"_question\": \"I have 7 years of experience and a 3 year bachelor's degree plus 2 year master's degree from India. Is this enough to qualify for EB2 or EB3?\",\n", + "\"_answer\": \"It is possible that you could combine your bachelor's and master's degrees to meet the requirements for EB2, since they are in the same or similar fields.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the eligibility for EB2 or EB3 if I have 7 years of experience with a 3-year bachelor's degree and a 2-year master's degree from India? The job for which my green card is being filed requires a bachelor's degree and 6 years of experience.\",\n", - "\"_answer\": \"Generally, if the bachelor's and master's degrees are in the same or similar fields, you should be able to combine them to get the 4-year degree requirement for EB2. You should have a good chance of qualifying for EB2.\"} \n", + "{\"_question\": \"I have a 3 year bachelor's degree and a 2 year master's degree from India, plus 7 years of experience. Does this qualify me for EB2 or EB3?\",\n", + "\"_answer\": \"You may be able to use your bachelor's and master's degrees together to meet the requirements for EB2, since they are in the same or similar fields.\"} \n", "\n", "\n", "\n", @@ -1724,16 +1869,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the estimated time frame for green card processing if I initiate it now?\",\n", - "\"_answer\": \"The duration of the process can range from 3-4 years or more, depending on the backlog of the country of birth. However, having the I-140 approved can be beneficial as it allows you to transfer your priority date to the next employer and extend your H-1 beyond 6 years.\"}\n", + "{\"_question\": \"What is the estimated timeline for green card processing and EB2 if I initiate it now?\",\n", + "\"_answer\": \"The length of time for green card processing and EB2 for those born in countries with a backlog can range from 3-4 years or longer, depending on a variety of factors. However, getting to the I-140 approved stage can be beneficial as it allows you to transfer your priority date to another employer and get an H-1 extension beyond six years.\"}\n", "\n", "######\n", - "{\"_question\": \"How long will it take to get a green card if I start the process now?\",\n", - "\"_answer\": \"The timeline for green card processing can vary from 3-4 years or more, depending on the backlog of the country of birth. An advantage of getting the I-140 approved is that you can transfer your priority date to the next employer and extend your H-1 beyond 6 years.\"}\n", + "{\"_question\": \"If I begin the green card process and EB2 now, how long will it take?\",\n", + "\"_answer\": \"The duration of the green card process and EB2 for individuals from countries with a backlog can be anywhere from 3-4 years or longer, depending on a number of variables. One advantage of reaching the I-140 approved stage is that you can transfer your priority date to a different employer and obtain an H-1 extension beyond six years.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the expected duration of green card processing if I initiate it now?\",\n", - "\"_answer\": \"The length of the process can range from 3-4 years or more, depending on the backlog of the country of birth. Getting the I-140 approved can be advantageous as it allows you to transfer your priority date to the next employer and extend your H-1 beyond 6 years.\"} \n", + "{\"_question\": \"What is the expected time frame for green card processing and EB2 if I start it now?\",\n", + "\"_answer\": \"For those born in countries with a backlog, the timeline for green card processing and EB2 can range from 3-4 years or longer, depending on various factors. A major benefit of getting to the I-140 approved stage is that you can transfer your priority date to another employer and get an H-1 extension beyond six years.\"} \n", "\n", "\n", "\n", @@ -1743,15 +1888,15 @@ "\n", "######\n", "{\"_question\": \"Can my current employer sponsor me for EB2 after they promote me to Clinical Specialist?\",\n", - "\"_answer\": \"The law allows for experience gained with the same employer to be used if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To assess the chances, it is best to consult a competent lawyer.\"}\n", + "\"_answer\": \"It is possible to use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. Only a competent lawyer can help you assess the chances.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am promoted to Clinical Specialist by my current employer, can they sponsor me for EB2?\",\n", - "\"_answer\": \"It is possible to use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To determine the chances, it is recommended to seek the advice of a qualified lawyer.\"}\n", + "{\"_question\": \"If I am promoted to Clinical Specialist, can my current employer sponsor me for EB2?\",\n", + "\"_answer\": \"The law allows for the use of experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To determine the likelihood of success, it is best to consult with a qualified lawyer.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am promoted to Clinical Specialist, can my current employer sponsor me for EB2?\",\n", - "\"_answer\": \"Under the current law, it is possible to use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To assess the chances, it is advisable to consult a competent lawyer.\"} \n", + "{\"_question\": \"Can I use my experience with my current employer for EB2 if I am promoted to Clinical Specialist?\",\n", + "\"_answer\": \"The law permits the use of experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To get a better understanding of the chances of success, it is recommended to seek the advice of a competent lawyer.\"} \n", "\n", "\n", "\n", @@ -1760,16 +1905,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a B.Tech in Electronics from India in 2004 and 6 years of experience (3 in India and 3 in the US). Is it necessary to have 5 years of experience outside of the US?\",\n", - "\"_answer\": \"Given your four-year degree and more than five years of post-degree experience, you should have a chance at EB2.\"}\n", + "{\"_question\": \"Am I eligible for EB2? I have a B.Tech in Electronics from India in 2004 and a combined experience of 6 years (3 years in India and 3 years in the US). Is it a requirement to have 5 years of experience outside of the US?\",\n", + "\"_answer\": \"Given your four-year degree and more than five years of post-degree experience, you should have a good chance of qualifying for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I qualify for EB2? I have a B.Tech in Electronics from India in 2004 and 6 years of experience (3 in India and 3 in the US). Do I need to have 5 years of experience outside of the US?\",\n", - "\"_answer\": \"With your four-year degree and more than five years of post-degree experience, you should be able to pursue EB2.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB2? I have a B.Tech in Electronics from India in 2004 and a combined experience of 6 years (3 years in India and 3 years in the US). Is it necessary to have 5 years of experience outside of the US?\",\n", + "\"_answer\": \"With your four-year degree and more than five years of post-degree experience, you should have a good chance of being eligible for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a B.Tech in Electronics from India in 2004 and 6 years of experience (3 in India and 3 in the US). Is it a requirement to have 5 years of experience outside of the US?\",\n", - "\"_answer\": \"You should have a shot at EB2 with your four-year bach. degree and more than five years of post bach experience.\"} \n", + "{\"_question\": \"Can I apply for EB2? I have a B.Tech in Electronics from India in 2004 and a combined experience of 6 years (3 years in India and 3 years in the US). Is it mandatory to have 5 years of experience outside of the US?\",\n", + "\"_answer\": \"Given your four-year degree and more than five years of post-degree experience, you should have a good chance of being approved for EB2.\"} \n", "\n", "\n", "\n", @@ -1778,16 +1923,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can volunteer work be counted as an experience for EB2? I am an OT practitioner in the US who graduated with a BSOT and had two years of volunteer work in an adult setting in my home country. Would that count as part of the five years experience? During the first six months, I was not yet licensed as an OT.\",\n", - "\"_answer\": \"Generally, for EB2, there is no requirement that I am aware of that requires paid experience. Volunteer experience could be taken into consideration.\"}\n", + "{\"_question\": \"Can I use volunteer work to satisfy the experience requirement for EB2?\", \n", + "\"_answer\": \"In general, there is no requirement that paid experience is necessary for EB2; volunteer work could be taken into consideration.\"}\n", "\n", "######\n", - "{\"_question\": \"Does volunteer work count as an experience for EB2? I am an OT practitioner in the US who graduated with a BSOT and had two years of volunteer work in an adult setting in my home country. Would that count as part of the five years experience? During the first six months, I was not yet licensed as an OT.\",\n", - "\"_answer\": \"Generally, for EB2, there is no rule that I am aware of that necessitates paid experience. Volunteer experience could be taken into account.\"}\n", + "{\"_question\": \"Does volunteer work count towards the 5 years of experience for EB2?\", \n", + "\"_answer\": \"No specific rule requires paid experience for EB2; volunteer work may be considered.\"}\n", "\n", "######\n", - "{\"_question\": \"Is volunteer work considered an experience for EB2? I am an OT practitioner in the US who graduated with a BSOT and had two years of volunteer work in an adult setting in my home country. Would that count as part of the five years experience? During the first six months, I was not yet licensed as an OT.\",\n", - "\"_answer\": \"Generally, for EB2, there is no requirement that I am aware of that demands paid experience. Volunteer experience could be taken into account.\"} \n", + "{\"_question\": \"Can I use my volunteer OT work to meet the 5 year experience requirement for EB2?\", \n", + "\"_answer\": \"No specific regulation mandates that paid experience is necessary for EB2; volunteer work could be taken into account.\"} \n", "\n", "\n", "\n", @@ -1796,16 +1941,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB2 green card? I have a Bachelor's degree in Computer Science Engineering, 4 years of work experience as a Subject Matter Expert in the US on an L1B visa, and 2 Microsoft certifications and AICPCU certifications.\",\n", - "\"_answer\": \"You will need 5 years of post-bachelor's experience. Certifications do not usually count towards eligibility.\"}\n", - "\n", - "######\n", - "{\"_question\": \"Do I meet the requirements for an EB2 green card? I have a Bachelor's degree in Computer Science Engineering, 4 years of work experience as a Subject Matter Expert in the US on an L1B visa, and 2 Microsoft certifications and AICPCU certifications.\",\n", - "\"_answer\": \"You must have 5 years of post-bachelor's experience. Certifications are not typically considered.\"}\n", + "{\"_question\": \"Am I qualified for EB2? I have a Bachelor's degree in Computer Science Engineering (4 years) and I am currently working as a Subject Matter Expert in the US on an L1B visa with 4 years of experience. I have also completed two Microsoft certifications and AICPCU certifications. Can I apply for a Green Card under the EB2 category?\",\n", + "\"_answer\": \"You must have 5 years of experience after your Bachelor's degree to be eligible. Certifications do not usually count towards this requirement.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB2 green card? I have a Bachelor's degree in Computer Science Engineering, 4 years of work experience as a Subject Matter Expert in the US on an L1B visa, and 2 Microsoft certifications and AICPCU certifications.\",\n", - "\"_answer\": \"You must have 5 years of post-bachelor's experience. Certifications do not usually factor in.\"} \n", + "{\"_question\": \"Do I meet the criteria for EB2? I have a Bachelor's degree in Computer Science Engineering (4 years) and I am currently employed as a Subject Matter Expert in the US on an L1B visa with 4 years of experience. I have also obtained two Microsoft certifications and AICPCU certifications. Can I apply for a Green Card under the EB2 category?\",\n", + "\"_answer\": \"You must have 5 years of experience following your Bachelor's degree to be eligible. Certifications are not usually taken into account.\"} \n", "\n", "\n", "\n", @@ -1814,16 +1955,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"If one has an approved I-140, is it necessary to switch to a similar job to preserve the priority date?\",\n", - "\"_answer\": \"No, the job does not need to be the same. The green card process must be restarted, but the priority date can be transferred to any job and category (EB1, EB2, EB3).\"}\n", + "{\"_question\": \"If one has an approved I-140, is it necessary to switch to a similar job to preserve the priority date?\", \n", + "\"_answer\": \"No, the job does not need to be similar. The green card process must be restarted, but the priority date can be transferred to any job and category (EB1, EB2, EB3).\"}\n", "\n", "######\n", - "{\"_question\": \"If someone has an approved I-140, do they need to transition to a comparable job to keep the priority date?\",\n", - "\"_answer\": \"No, the job does not have to be the same. The green card application must be restarted, but the priority date can be shifted to any job and category (EB1, EB2, EB3).\"}\n", + "{\"_question\": \"If an individual has an approved I-140, is it a requirement to move to a comparable job to keep the priority date?\", \n", + "\"_answer\": \"No, the job does not have to be comparable. The green card application must be restarted, but the priority date can be moved to any job and classification (EB1, EB2, EB3).\"}\n", "\n", "######\n", - "{\"_question\": \"If an individual has an approved I-140, is it necessary to move to a similar job to maintain the priority date?\",\n", - "\"_answer\": \"No, the job does not need to be the same. The green card filing must be restarted, but the priority date can be transferred to any job and category (EB1, EB2, EB3).\"} \n", + "{\"_question\": \"If someone has an approved I-140, do they need to switch to a similar job to maintain the priority date?\", \n", + "\"_answer\": \"No, the job does not have to be similar. The green card must be filed again, but the priority date can be transferred to any job and category (EB1, EB2, EB3).\"} \n", "\n", "\n", "\n", @@ -1832,16 +1973,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for EB2 if the job requires a Bachelor's degree and 5 years of post-Bachelor's experience? Is the concept of 'cross chargeability' applicable to my green card application? If so, how can I take advantage of it?\",\n", - "\"_answer\": \"Yes, you can submit an EB2 application if the role requires a Bachelor's degree and 5 years of post-Bachelor's experience. Cross chargeability is applicable to your green card application, and you can benefit from it by discussing the details with your lawyers.\"}\n", + "{\"_question\": \"Can I apply for EB2 if the job requires a Bachelor's degree and 5 years of post-Bachelor's experience? Is the concept of 'cross chargeability' applicable to my Green Card application? If so, how can I take advantage of it?\",\n", + "\"_answer\": \"Yes, you can apply for EB2 if the job requires a Bachelor's degree with 5 years of post-Bachelor's experience. Yes, you can use cross chargeability. Consult with your lawyers to discuss the details.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible for me to apply for EB2 if the job requires a Bachelor's degree and 5 years of post-Bachelor's experience? Can I use cross chargeability for my green card application? How can I make use of it?\",\n", - "\"_answer\": \"Yes, you can submit an EB2 application if the role requires a Bachelor's degree and 5 years of post-Bachelor's experience. Cross chargeability is applicable to your green card application, and you can take advantage of it by consulting with your lawyers.\"}\n", + "{\"_question\": \"If I have a Bachelor's degree and 5 years of post-Bachelor's experience, am I eligible to file an EB2 application? Is the concept of 'cross chargeability' applicable to my Green Card application? How can I benefit from it?\",\n", + "\"_answer\": \"Yes, you can apply for EB2 if the job requires a Bachelor's degree with 5 years of post-Bachelor's experience. Yes, you can use cross chargeability. Talk to your lawyers to find out more about it.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible to file an EB2 application if the role requires a Bachelor's degree and 5 years of post-Bachelor's experience? Is cross chargeability applicable to my green card application? How can I benefit from it?\",\n", - "\"_answer\": \"Yes, you can apply for EB2 if the job requires a Bachelor's degree and 5 years of post-Bachelor's experience. Cross chargeability is applicable to your green card application, and you can take advantage of it by talking to your lawyers.\"} \n", + "{\"_question\": \"I have a MS degree from the US and 5 years of work experience. If I am moved to a role that requires a Bachelor's degree and 5 years of post-Bachelor's experience, can I apply for EB2? Is cross chargeability applicable to my Green Card application? How can I make use of it?\",\n", + "\"_answer\": \"Yes, you can apply for EB2 if the job requires a Bachelor's degree with 5 years of post-Bachelor's experience. Yes, you can use cross chargeability. Speak to your lawyers to learn more about it.\"} \n", "\n", "\n", "\n", @@ -1850,16 +1991,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I be eligible for an EB2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT online in the US?\",\n", - "\"_answer\": \"In my opinion, if your job necessitates an advanced degree, you can apply for EB-2.\"}\n", + "{\"_question\": \"Can I be eligible for an EB2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT taken online in the US?\",\n", + "\"_answer\": \"In my opinion, if your job requires an advanced degree, you can apply for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB2 visa if I have a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT online in the US?\",\n", - "\"_answer\": \"In my opinion, if your occupation requires an advanced degree, you can apply for EB-2.\"}\n", + "{\"_question\": \"Do I qualify for an EB2 visa if I have a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT taken online in the US?\",\n", + "\"_answer\": \"My view is that if your job necessitates an advanced degree, you can apply for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB2 visa if I have a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT online in the US?\",\n", - "\"_answer\": \"In my opinion, if your job necessitates an advanced degree, you can be eligible for EB-2.\"} \n", + "{\"_question\": \"Am I eligible for an EB2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT taken online in the US?\",\n", + "\"_answer\": \"From my perspective, if your job requires an advanced degree, you can apply for EB-2.\"} \n", "\n", "\n", "\n", @@ -1872,12 +2013,12 @@ "\"_answer\": \"Yes, that is accurate. This is known as 'cross changeability'.\"}\n", "\n", "######\n", - "{\"_question\": \"I would like to thank you for providing guidance to hundreds of us with your valuable advice. I have a query regarding the interchangeability of EB2 priority dates. As an Indian citizen, can I use my wife's Russian priority date (\"current\" as of today) for the green card application?\",\n", - "\"_answer\": \"Yes, that is possible. This is referred to as 'cross changeability'.\"}\n", + "{\"_question\": \"I am an Indian national and my wife is a Russian citizen, born in Russia. We are applying for a green card and I read on some online forums that I can use her country's priority date (\"current\" as of today) for the green card. Is this true?\",\n", + "\"_answer\": \"Yes, that is true. This is referred to as 'cross changeability'.\"}\n", "\n", "######\n", - "{\"_question\": \"I am grateful for your assistance to many of us with your helpful advice. I have a question about the interchangeability of EB2 priority dates. As an Indian citizen, can I use my wife's Russian priority date (\"current\" as of today) for the green card application?\",\n", - "\"_answer\": \"Yes, that is correct. This is known as 'cross changeability'.\"} \n", + "{\"_question\": \"I am an Indian citizen and my wife is a Russian citizen, born in Russia. We are filing for a green card and I read on some online forums that I can use her country's priority date (\"current\" as of today) for the green card. Is this correct?\",\n", + "\"_answer\": \"Yes, that is correct. This is called 'cross changeability'.\"} \n", "\n", "\n", "\n", @@ -1886,16 +2027,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I be eligible for an EB2 visa if I have a US-based master's degree and my employer is willing to help me?\",\n", - "\"_answer\": \"No, you will not be eligible for an EB2 visa unless the job requires a post graduate degree or bachelor's degree with five years of experience at a minimum.\"}\n", + "{\"_question\": \"Can I be eligible for an EB2 if my employer hires me in a different position and advertises the new job requirements (master's) after I'm hired?\", \n", + "\"_answer\": \"No, you will not be eligible for an EB2 unless the job also legitimately requires a post graduate degree or bach. with five years of experience at a minimum.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am offered a state job that requires a bachelor's degree with one year of experience, but I have a US-based master's degree, can I be eligible for an EB2 visa?\",\n", - "\"_answer\": \"No, you will not qualify for an EB2 unless the job also legitimately requires a post graduate degree or bachelor's degree with five years of experience at a minimum.\"}\n", + "{\"_question\": \"If I am offered a state job that requires a bachelor's degree with one year of experience, but I have a US-based master's degree, can I request my employer to hire me in another position and advertise the new job requirements (master's) after I'm hired to be eligible for EB2?\", \n", + "\"_answer\": \"No, you will not qualify for an EB2 unless the job also legitimately requires a post graduate degree or bach. with five years of experience at a minimum.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am offered a state job that requires a bachelor's degree with one year of experience, but I have a US-based master's degree, can my employer help me to be eligible for an EB2 visa?\",\n", - "\"_answer\": \"No, you will not be able to qualify for an EB2 unless the job also legitimately requires a post graduate degree or bachelor's degree with five years of experience at a minimum.\"} \n", + "{\"_question\": \"If I am offered a state job that requires a bachelor's degree with one year of experience, but I have a US-based master's degree, can I ask my employer to hire me in another position and list the new job requirements (master's) after I'm hired to be eligible for EB2?\", \n", + "\"_answer\": \"No, you will not be able to get an EB2 unless the job also legitimately requires a post graduate degree or bach. with five years of experience at a minimum.\"} \n", "\n", "\n", "\n", @@ -1904,16 +2045,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 with an online masters degree?\",\n", - "\"_answer\": \"The most important factor is to determine if the degree is accredited. You should contact the school to find out.\"}\n", + "{\"_question\": \"Do I qualify for EB2 with my online master's degree? I have a 5 year bachelor's degree from a traditional school in the US and a 2 year MBA from an accredited university in the US through distance education. My employer is questioning if my master's degree is recognized.\",\n", + "\"_answer\": \"The most important factor is to determine if the degree is accredited. You should contact the school for more information.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I get an EB2 visa with a distance learning masters degree?\",\n", - "\"_answer\": \"The key is to check if the degree is accredited. You should talk to the school to find out.\"}\n", + "{\"_question\": \"Am I eligible for EB2 with my online master's degree? I have a 5 year bachelor's degree from a US school and a 2 year MBA from an accredited university in the US through distance education. My employer is unsure if my master's degree is valid.\",\n", + "\"_answer\": \"The key is to check if the degree is accredited. You should reach out to the school for more information.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2 with a masters degree obtained online?\",\n", - "\"_answer\": \"The main thing to consider is if the degree is accredited. You should consult the school to find out.\"} \n", + "{\"_question\": \"Can I qualify for EB2 with my online master's degree? I have a 5 year bachelor's degree from a US school and a 2 year MBA from an accredited university in the US through distance education. My employer is questioning if my master's degree is accepted.\",\n", + "\"_answer\": \"The most important step is to verify if the degree is accredited. You should contact the school for more details.\"} \n", "\n", "\n", "\n", @@ -1922,16 +2063,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"To be eligible for EB2 with advanced degrees, is it enough to have a Master's from a US university or must the job description specify it?\",\n", - "\"_answer\": \"The job must also genuinely require EB2 qualifications.\"}\n", + "{\"_question\": \"To be eligible for EB2 under advanced degrees, is it enough to have a Master's degree from a US university or must the job description specify it?\",\n", + "\"_answer\": \"The job must also necessitate EB2 level qualifications.\"}\n", "\n", "######\n", - "{\"_question\": \"To qualify for EB2 with advanced degrees, is a Master's from a US university sufficient or must the job require it?\",\n", - "\"_answer\": \"The job must also genuinely necessitate EB2 qualifications.\"}\n", + "{\"_question\": \"To qualify for EB2 under advanced degrees, is a MS degree from a US university enough or must the job requirement state so?\",\n", + "\"_answer\": \"The job must also necessitate EB2 level qualifications.\"}\n", "\n", "######\n", - "{\"_question\": \"To be eligible for EB2 with advanced degrees, is a Master's from a US university enough or must the job listing state so?\",\n", - "\"_answer\": \"The job must also genuinely demand EB2 qualifications.\"} \n", + "{\"_question\": \"To be eligible for EB2 under advanced degrees, is a MS degree from a US university sufficient or must the job requirement indicate it?\",\n", + "\"_answer\": \"The job must also demand EB2 level qualifications.\"} \n", "\n", "\n", "\n", @@ -1940,16 +2081,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is there any issue with my educational background for the I-140, given that my PERM is approved under EB2? My qualifications include a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience at the time of PERM, and all my education is from India.\",\n", - "\"_answer\": \"There are some variables to consider. Generally, if the B.Tech is supposed to be a 4-year degree and you completed it in three due to your diploma, you should be alright.\"}\n", + "{\"_question\": \"Is there any issue with my educational background for the I-140 considering my PERM is approved under EB2? I have a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech and 8 years of experience at the time of PERM, and all my education is from India.\",\n", + "\"_answer\": \"Generally, if the B.Tech is supposed to be a 4-year degree and you got it in three due to your diploma, you should be okay.\"}\n", "\n", "######\n", - "{\"_question\": \"Given that my PERM is approved under EB2 and my educational background is from India (3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience at the time of PERM), do you think there will be any problems with my I-140?\",\n", - "\"_answer\": \"There are some factors to consider. Generally, if the B.Tech is supposed to be a 4-year degree and you achieved it in three because of your diploma, you should be okay.\"}\n", + "{\"_question\": \"I have been approved for PERM under EB2 and my education is from India. It consists of a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech and 8 years of experience at the time of PERM. Could there be any issues with my educational background for the I-140?\",\n", + "\"_answer\": \"Generally, if the B.Tech is intended to be a 4-year degree and you obtained it in three due to your diploma, you should be in the clear.\"}\n", "\n", "######\n", - "{\"_question\": \"My PERM is approved under EB2 and my educational background is from India (3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience at the time of PERM). Is there any issue with my educational background for the I-140?\",\n", - "\"_answer\": \"There are some variables to take into account. Generally, if the B.Tech is supposed to be a 4-year degree and you attained it in three due to your diploma, you should be fine.\"} \n", + "{\"_question\": \"My PERM is approved under EB2 and my education is from India. It includes a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech and 8 years of experience at the time of PERM. Is there any problem with my educational background for the I-140?\",\n", + "\"_answer\": \"Generally, if the B.Tech is supposed to be a 4-year degree and you achieved it in three because of your diploma, you should be fine.\"} \n", "\n", "\n", "\n", @@ -1958,16 +2099,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the typical duration for getting a green card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I would like to submit the petition.\",\n", - "\"_answer\": \"The biggest hold up for most people is the movement of the priority date. Have a look at the Visa Bulletin and the Permanent Processing Times to get an idea of the timeline.\"}\n", + "{\"_question\": \"What is the typical wait time for a Green Card through the EB2 category? I have a Master's in International Business and 7 years of experience in the USA and EU. I have a job offer from the US and I would like to file the petition.\",\n", + "\"_answer\": \"The biggest hold up for most people is the priority date movement. Have a look at the Visa Bulletin and the Permanent Processing Times. That should give you a good indication.\"}\n", "\n", "######\n", - "{\"_question\": \"How long does it usually take to get a green card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I would like to file the petition.\",\n", - "\"_answer\": \"The biggest delay for most people is the progress of the priority date. Check out the Visa Bulletin and the Permanent Processing Times to get an understanding of the timeline.\"}\n", + "{\"_question\": \"What is the average time it takes to get a Green Card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I want to submit the petition.\",\n", + "\"_answer\": \"The main delay for most people is the priority date movement. Check out the Visa Bulletin and the Permanent Processing Times. That should give you a good idea.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the average time to obtain a green card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I would like to submit the petition.\",\n", - "\"_answer\": \"The biggest obstacle for most people is the movement of the priority date. Have a look at the Visa Bulletin and the Permanent Processing Times to get an idea of the timeframe.\"} \n", + "{\"_question\": \"How long does it usually take to obtain a Green Card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I am looking to file the petition.\",\n", + "\"_answer\": \"The biggest impediment for most people is the priority date movement. Have a look at the Visa Bulletin and the Permanent Processing Times. That should give you a good idea of what to expect.\"} \n", "\n", "\n", "\n", @@ -1976,16 +2117,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do my qualifications meet the EB-2 criteria?\", \n", - "\"_answer\": \"It is not possible to predict if your qualifications meet the EB-2 criteria. It depends on the type of degrees and the language used in the formeta9089.\"}\n", + "{\"_question\": \"Do I meet the EB-2 criteria? I have a Bachelor's degree in Computing from the UK, which was a 3 year course, and a Master's degree from the UK in Computing, which was a 1 year course. Will this be enough to qualify for the EB-2 category?\",\n", + "\"_answer\": \"It is impossible to predict. It all depends on the type of degrees and the language used in the Form I-9089.\"}\n", "\n", "######\n", - "{\"_question\": \"Will my education be accepted for the EB-2 category?\", \n", - "\"_answer\": \"It is not possible to anticipate if your education will be accepted for the EB-2 category. It depends on the type of degrees and the language used in the formeta9089.\"}\n", + "{\"_question\": \"Will I be eligible for EB-2? I have a Bachelor's degree in Computing from the UK, which was a 3 year course, and a Master's degree from the UK in Computing, which was a 1 year course. Is this enough to qualify for the EB-2 category?\",\n", + "\"_answer\": \"It is impossible to tell. It all depends on the type of degrees and the language used in the Form I-9089.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I be sure that my degrees will qualify for the EB-2?\", \n", - "\"_answer\": \"It is impossible to guarantee that your degrees will qualify for the EB-2. It all depends on the type of degrees and the language used in the formeta9089.\"} \n", + "{\"_question\": \"Am I eligible for EB-2? I have a Bachelor's degree in Computing from the UK, which was a 3 year course, and a Master's degree from the UK in Computing, which was a 1 year course. Is this enough to meet the EB-2 criteria?\",\n", + "\"_answer\": \"It is not possible to determine. It all depends on the type of degrees and the language used in the Form I-9089.\"} \n", "\n", "\n", "\n", @@ -1994,16 +2135,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I use cross chargeability if I was born in India and have an approved EB2 I-140, but my priority date is too old to file for I-485? If I marry someone from a different country, will that enable us to file for I-485 right away?\",\n", - "\"_answer\": \"Cross chargeability is an option if your spouse was born in a country other than India or China. Your spouse can only file for I-485 if they are currently in the US.\"}\n", + "{\"_question\": \"Can I use cross chargeability if I was born in India, have an approved EB2 I-140, but cannot apply for I-485 due to my Priority Date being November 2008? Is it possible if my fiancée was born in a country other than India or China, even if she is not in the US or on another visa category than H1B? Would marriage enable us to submit I-485 applications immediately?\",\n", + "\"_answer\": \"Cross chargeability is an option if your partner was born in a different country than you. She can only file her I-485 if she is in the US.\"}\n", "\n", "######\n", - "{\"_question\": \"I was born in India and have an approved EB2 I-140, but my priority date is too old to file for I-485. Is cross chargeability applicable in this case? If I marry someone from a different country, will that allow us to submit I-485 applications immediately?\",\n", - "\"_answer\": \"Cross chargeability is a possibility if your partner was born in a country other than India or China. Your partner can only file for I-485 if they are in the US at the moment.\"}\n", + "{\"_question\": \"I was born in India, have an approved EB2 I-140, but cannot apply for I-485 due to my Priority Date being November 2008. Is cross chargeability applicable in this case if I marry someone who was born in a country other than India or China? Does it matter if she is not in the US or on another visa category than H1B? Will tying the knot allow us to file for I-485 right away?\",\n", + "\"_answer\": \"Cross chargeability is a possibility if your spouse was born in a different country than you. She can only submit her I-485 if she is in America.\"}\n", "\n", "######\n", - "{\"_question\": \"I am an H1B holder born in India with an approved EB2 I-140, but my priority date is too old to file for I-485. Is cross chargeability an option if I marry someone from a different country? Will that enable us to apply for I-485 right away?\",\n", - "\"_answer\": \"Cross chargeability is a viable option if your spouse was born in a country other than India or China. Your spouse can only file for I-485 if they are currently in the US.\"} \n", + "{\"_question\": \"I am an H1B holder born in India and have an approved EB2 I-140, but cannot apply for I-485 since my Priority Date is November 2008. Is cross chargeability an option if I marry someone who was born in a country other than India or China? Does it matter if my partner is not in the US or on another visa category than H1B? Would marriage enable us to apply for I-485 immediately?\",\n", + "\"_answer\": \"Cross chargeability is feasible if your partner was born in a different country than you. She can only file her I-485 if she is in the US.\"} \n", "\n", "\n", "\n", @@ -2012,16 +2153,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I be refused by the US Embassy despite my EB2 approval from USCIS?\", \n", + "{\"_question\": \"Can I be refused by the US Embassy despite my EB2 being approved by USCIS?\",\n", "\"_answer\": \"It is not probable, but it is a possibility.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the chances of the US Embassy denying me despite my EB2 approval from USCIS?\", \n", + "{\"_question\": \"Is there a chance of being denied by the US Embassy after my EB2 was accepted by USCIS?\",\n", "\"_answer\": \"It is not likely, but it could happen.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I still be denied by the US Embassy even after my EB2 approval from USCIS?\", \n", - "\"_answer\": \"It is not probable, but it is a possibility.\"} \n", + "{\"_question\": \"What is the probability of being rejected by the US Embassy even though my EB2 was approved by USCIS?\",\n", + "\"_answer\": \"It is unlikely, but still possible.\"} \n", "\n", "\n", "\n", @@ -2030,12 +2171,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for EB2 Permanent Classification? I am a technology professional with almost 9 years of work experience. I am currently employed as a software consultant in a trading company in the US and will be graduating from a part-time MBA program (concentration in finance) this December. If I plan to apply for permanent residency next year, will I be eligible to apply under EB-2 US Masters Degree, considering my MBA in finance will assist in understanding complex financial principles and writing algorithms that support daily trading? In this case, will my prior experience be taken into account?\",\n", - "\"_answer\": \"If you have earned your master's degree by the time you submit your permanent residency application, you should be able to qualify for EB-2.\"}\n", + "{\"_question\": \"What is the eligibility criteria for EB-2 US Masters Degree for a technology professional with nearly 9 years of work experience?\",\n", + "\"_answer\": \"If you have earned a master's degree and plan to apply for permanent residency next year, you should be able to get EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"What about EB2 Permanent Classification? I have been a technology professional for almost 9 years and am currently working as a software consultant in a trading firm in the US. I am due to graduate from a part-time MBA program (finance concentration) this December. If I apply for permanent residency next year, will I be eligible to apply under EB-2 US Masters Degree, given that my MBA in finance will help me comprehend complex financial principles and write algorithms that support daily trading? Will my past experience be considered in this case?\",\n", - "\"_answer\": \"If you have obtained your master's degree by the time you file your permanent residency application, you should be able to get EB-2.\"} \n", + "{\"_question\": \"Can I apply for EB-2 US Masters Degree with my MBA in finance and 9 years of work experience?\",\n", + "\"_answer\": \"Yes, as long as you have earned the degree by the time you file for permanent residency, you should be eligible for EB-2.\"}\n", + "\n", + "######\n", + "{\"_question\": \"What is the requirement for EB-2 US Masters Degree for a technology professional with nearly 9 years of work experience?\",\n", + "\"_answer\": \"If you have obtained a master's degree and plan to apply for permanent residency next year, you should be able to get EB-2.\"} \n", "\n", "\n", "\n", @@ -2044,16 +2189,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can company B use company A's labor certificate and refile the I-140 again?\",\n", - "\"_answer\": \"In my opinion, this is a great chance to initiate a new PERM under EB2 and transfer the priority date. Consult with your attorneys.\"}\n", + "{\"_question\": \"Can company B refile an I-140 using the labor certificate from company A?\",\n", + "\"_answer\": \"It is possible to start a new PERM under EB2 and transfer the priority date from company A.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible for company B to use company A's labor certificate and resubmit the I-140?\",\n", - "\"_answer\": \"From my perspective, this is a great opportunity to initiate a fresh PERM under EB2 and transfer the priority date. Speak with your legal advisors.\"}\n", + "{\"_question\": \"Is it possible to use the labor certificate from company A to refile the I-140 with company B?\",\n", + "\"_answer\": \"Yes, it is possible to initiate a new PERM under EB2 and transfer the priority date from company A.\"}\n", "\n", "######\n", - "{\"_question\": \"Can company B utilize company A's labor certificate and file the I-140 again?\",\n", - "\"_answer\": \"In my view, this is a great opportunity to start a new PERM under EB2 and transfer the priority date. Consult with your lawyers.\"} \n", + "{\"_question\": \"Can company B use the labor certificate from company A to refile the I-140?\",\n", + "\"_answer\": \"Yes, it is a viable option to start a new PERM under EB2 and transfer the priority date from company A.\"} \n", "\n", "\n", "\n", @@ -2062,12 +2207,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have a 10+3.5 years diploma and 3 years of a bs. I studied computer engineering for 3.5 years and information systems (bits) for 3 years. My labor is in process under the eb2 category. I'm worried that my i-140 will be denied due to my education. Mr. Khanna, do you have any cases that have been approved with a diploma and a bs?\",\n", - "\"_answer\": \"I believe your concern is valid. These types of cases are hard to get approved. I'm not able to give you a definite answer since I'm not aware of the specifics. Speak to your lawyers about your worries and if possible, get a written response.\"}\n", + "{\"_question\": \"I have a 10+3.5 years diploma and 3 years bs. I studied computer engineering for 3.5 years and information systems (bits) for 3 years. My labor is in process under the eb2 catageory. I am concerned that my i-140 will be denied due to my education. Mr. Khanna, do you have any approval cases with a diploma and bs?\",\n", + "\"_answer\": \"I understand your apprehension. These types of cases are hard to get approved. I cannot comment on your specific case since I do not have all the details. Speak to your lawyer about your worries and see if you can get a written response.\"}\n", + "\n", + "######\n", + "{\"_question\": \"I have a 10+3.5 years diploma and 3 years bs. I did 3.5 years in computer engineering and 3 years in information systems (bits). My labor is in process under the eb2 catageory. I am worried that my i-140 will be denied because of my education. Mr. Khanna, do you have any approval cases with a diploma and bs?\",\n", + "\"_answer\": \"I can understand your fear. These kinds of cases are difficult to get approved. I cannot comment on your particular situation since I do not have all the facts. Talk to your lawyer about your worries and if possible, get a written answer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 10+3.5 years diploma and 3 years of a bs. I studied computer engineering for 3.5 years and information systems (bits) for 3 years. My labor is in process under the eb2 category. I'm anxious that my i-140 will be rejected due to my education. Mr. Khanna, do you have any cases that have been approved with a diploma and a bs?\",\n", - "\"_answer\": \"I think your fear is justified. These types of cases are hard to get approved. I'm not able to give you a definite answer since I'm not aware of the details. Converse with your lawyers about your worries and if possible, get a written reply.\"} \n", + "{\"_question\": \"I have a 10+3.5 years diploma and 3 years bs. I studied computer engineering for 3.5 years and information systems (bits) for 3 years. My labor is in process under the eb2 catageory. I am afraid that my i-140 will be denied due to my education. Mr. Khanna, do you have any approval cases with a diploma and bs?\",\n", + "\"_answer\": \"I sympathize with your worry. These types of cases are hard to get approved. I cannot comment on your specific case since I do not have all the details. Consult your lawyer about your concerns and see if you can get a written response.\"} \n", "\n", "\n", "\n", @@ -2076,16 +2225,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the odds of my EB1 extraordinary ability petition being approved on the second filing?\",\n", - "\"_answer\": \"It is impossible to tell without knowing the specifics of your case.\"}\n", + "{\"_question\": \"What are the odds of my EB1 extraordinary ability application being approved on the second filing?\",\n", + "\"_answer\": \"It is impossible to determine without knowing the specifics of your case.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of my EB1 extraordinary ability petition being accepted if I refiled it?\",\n", - "\"_answer\": \"It is not possible to determine without more information about your case.\"}\n", + "{\"_question\": \"What is the likelihood of my EB1 extraordinary ability application being accepted on the second attempt?\",\n", + "\"_answer\": \"It is not possible to give an accurate prediction without having access to the details of your case.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the chances of my EB1 extraordinary ability petition being granted if I resubmitted it?\",\n", - "\"_answer\": \"It is impossible to say without more details about your situation.\"} \n", + "{\"_question\": \"What is the probability of my EB1 extraordinary ability application being approved on the second submission?\",\n", + "\"_answer\": \"It is impossible to provide an accurate assessment without having the full information of your case.\"} \n", "\n", "\n", "\n", @@ -2094,16 +2243,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB2 visa given my qualifications? I have a Bachelor's degree, a Master's equivalent in academia, and 5 years of experience in a top nursing school. I am also a PhD student in a top university. Is EB2 a family-based petition? My parents live in New Jersey.\",\n", - "\"_answer\": \"EB stands for Employment-Based. EB-2 is available for people with postgraduate degrees (by US standards) or a 4-year Bachelor's degree with five years of progressively responsible experience. You should consult with your lawyers about applying for an EB-2 and transferring your priority date.\"}\n", + "{\"_question\": \"Am I eligible for an EB2 visa? I have a BSN, completed a medical degree equivalent to a master's degree, and have been a faculty member/administrator at a top nursing school in Manila for five years. I am also a PhD student in biology at a top university in Manila. Is EB2 a family-based petition? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB2 is available for individuals who have postgraduate degrees (by US standards) or a four-year bachelor's degree with five years of progressively responsible experience. You should consult with your lawyer about applying for an EB2 and transferring your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB2 visa given my qualifications? I have a Bachelor's degree, a Master's equivalent in academia, and 5 years of experience in a top nursing school. I am also a PhD student in a top university. Is EB2 a family-based petition? My parents live in New Jersey.\",\n", - "\"_answer\": \"EB stands for Employment-Based. EB-2 is available for individuals with postgraduate degrees (by US standards) or a 4-year Bachelor's degree with five years of progressively responsible experience. You should speak with your lawyers about applying for an EB-2 and transferring your priority date.\"}\n", + "{\"_question\": \"Can I apply for an EB2 visa? I have a Bachelor of Science in Nursing, completed a medical degree equivalent to a Master's degree, and have been a faculty member/administrator at a top nursing school in Manila for five years. I am also a PhD student in biology at a top university in Manila. Is EB2 a family-based petition? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB2 is open to those who possess postgraduate degrees (by US standards) or a four-year bachelor's degree with five years of progressively responsible experience. You should speak to your attorney about applying for an EB2 and transferring your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB2 visa given my qualifications? I have a Bachelor's degree, a Master's equivalent in academia, and 5 years of experience in a top nursing school. I am also a PhD student in a top university. Is EB2 a family-based petition? My parents live in New Jersey.\",\n", - "\"_answer\": \"EB stands for Employment-Based. EB-2 is available for people with postgraduate degrees (by US standards) or a 4-year Bachelor's degree with five years of progressively responsible experience. You need to consult with your lawyers about applying for an EB-2 and transferring your priority date.\"} \n", + "{\"_question\": \"Am I qualified for an EB2 visa? I have a BSN, completed a medical degree equivalent to a master's degree, and have been a faculty member/administrator at a top nursing school in Manila for five years. I am also a PhD student in biology at a top university in Manila. Is EB2 a family-based petition? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB2 is available for people with post graduate degrees (by US standards) or a 4 years bach. degree with five years of progressively responsible experience. You should consult with your lawyer about applying for an EB2 and transferring your priority date.\"} \n", "\n", "\n", "\n", @@ -2112,16 +2261,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I need to wait for my diploma to apply for EB2?\",\n", - "\"_answer\": \"Generally, immigration law looks at when the degree was finished, not when the diploma was given. Consult your attorneys.\"}\n", + "{\"_question\": \"What is the legal focus when it comes to immigration law regarding a degree?\",\n", + "\"_answer\": \"The focus is on when the degree was finished, not when the diploma was given.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I use my official transcript to apply for EB2 or do I have to wait for my diploma?\",\n", - "\"_answer\": \"Generally, immigration regulations consider when the degree was completed, not when the diploma was presented. Speak to your lawyers.\"}\n", + "{\"_question\": \"Do I need to wait until I get the diploma to apply for EB2?\",\n", + "\"_answer\": \"No, the law focuses on when the degree was completed, not when the diploma was conferred.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I need to wait for my diploma to apply for EB2 or can I use my official transcript?\",\n", - "\"_answer\": \"Generally, immigration law focuses on when the degree was finished, not when the diploma was conferred. Consult your attorneys.\"} \n", + "{\"_question\": \"Can I use my official transcript to apply for EB2?\",\n", + "\"_answer\": \"Yes, as long as you have completed all the requirements of the master degree, you can use the transcript to apply for EB2.\"} \n", "\n", "\n", "\n", @@ -2130,16 +2279,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the risk of having my educational qualifications denied when filing under EB-2?\",\n", - "\"_answer\": \"Your educational background may be scrutinized closely during the I-140 stage, but USCIS may raise questions about it at any point. I have seen approved I-140s reopened and denied at the I-485 stage.\"}\n", + "{\"_question\": \"What is the risk of being denied due to educational qualifications when filing for EB-2?\", \n", + "\"_answer\": \"Your educational background is usually examined closely when submitting an I-140. However, USCIS has the right to question any of these matters at any stage, and I have seen approved I-140s being reopened and denied at the I-485 stage.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of my educational qualifications being rejected when I apply for EB-2?\",\n", - "\"_answer\": \"Your educational background may be carefully examined during the I-140 phase, but USCIS can raise issues about it at any time. I have observed I-140s that were approved and then denied at the I-485 stage.\"}\n", + "{\"_question\": \"What is the likelihood of being refused due to educational qualifications when applying for EB-2?\", \n", + "\"_answer\": \"Your educational credentials are usually scrutinized thoroughly when submitting an I-140. Nevertheless, USCIS has the authority to query any of these matters at any stage, and I have seen approved I-140s being reopened and denied at the I-485 stage.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the risk of my educational credentials being denied when I file for EB-2?\",\n", - "\"_answer\": \"Your educational background may be thoroughly evaluated during the I-140 stage, but USCIS may bring up concerns about it at any point. I have seen I-140s that were approved and then denied at the I-485 stage.\"} \n", + "{\"_question\": \"What is the chance of being rejected due to educational qualifications when filing for EB-2?\", \n", + "\"_answer\": \"Your educational qualifications are usually examined in depth when submitting an I-140. However, USCIS can question any of these matters at any stage, and I have seen approved I-140s being reopened and denied at the I-485 stage.\"} \n", "\n", "\n", "\n", @@ -2148,16 +2297,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a B.Sc in Physics from India and a MCA in IT from India. Can I apply for a green card through an IT-based company?\",\n", - "\"_answer\": \"It is possible, however, your lawyers should be sure to draft the PERM application carefully so that if EB2 is denied, EB3 should still be approved.\"}\n", + "{\"_question\": \"Do I qualify for EB2? I have a Bachelor of Science in Physics from India (3 years) and a Master of Computer Science (3 years). Can I apply for a green card through an IT-based company?\",\n", + "\"_answer\": \"It is possible, but make sure your lawyers prepare the PERM application carefully so that if EB2 is denied, EB3 will still be accepted.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a Bachelor's in Science from India with a focus in Physics, and a Master's in Computer Science from India. Can I apply for a green card through an IT-based company?\",\n", - "\"_answer\": \"It is possible, however, your legal team should be sure to craft the PERM application carefully so that if EB2 is denied, EB3 should still be accepted.\"}\n", + "{\"_question\": \"Am I eligible for EB2? I have a Bachelor's degree in Science (Physics) from India (3 years) and a Master's in Computer Science (3 years). Is it possible to apply for a green card through an IT-based company?\",\n", + "\"_answer\": \"It is a possibility, but ensure your attorneys craft the PERM application carefully so that if EB2 is denied, EB3 will still be approved.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a B.Sc in Physics from India and a MCA in IT from India. Can I file for a green card through an IT-based company?\",\n", - "\"_answer\": \"It is possible, however, your lawyers should be sure to compose the PERM application carefully so that if EB2 is rejected, EB3 should still be approved.\"} \n", + "{\"_question\": \"Can I get an EB2? I have a B.Sc. in Physics from India (3 years) and an MCA in IT (3 years). Is it feasible to file for a green card through an IT-based company?\",\n", + "\"_answer\": \"It is doable, but make sure your lawyers create the PERM application cautiously so that if EB2 is refused, EB3 will still be accepted.\"} \n", "\n", "\n", "\n", @@ -2166,16 +2315,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a B.Sc in Physics from India and a Masters in Computer Science from India. Can I apply for a green card in the IT field under EB2?\",\n", - "\"_answer\": \"Yes, it is possible, but make sure your lawyers prepare the PERM application carefully so that if EB2 is denied, EB3 will still be approved.\"}\n", + "{\"_question\": \"Can I apply for an EB2 green card if I have a B.Sc in Physics from India and an MCA in IT from India?\",\n", + "\"_answer\": \"It is possible, but make sure your attorneys prepare the PERM application carefully so that if EB2 is denied, EB3 is still approved.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a Bachelor of Science in Physics from India and a Masters in Computer Science from India. Can I apply for a green card in the IT sector under EB2?\",\n", - "\"_answer\": \"Yes, it is possible, but ensure your lawyers craft the PERM application carefully so that if EB2 is denied, EB3 can still be approved.\"}\n", + "{\"_question\": \"Do I qualify for an EB2 green card if I have a B.Sc in Physics from India and an MCA in IT from India?\",\n", + "\"_answer\": \"It is a possibility, but your lawyers should craft the PERM application cautiously so that if EB2 is rejected, EB3 is still accepted.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a B.Sc in Physics from India and a Masters in Computer Science from India. Can I apply for a green card in the IT industry under EB2?\",\n", - "\"_answer\": \"Yes, it is feasible, but make sure your lawyers design the PERM application carefully so that if EB2 is rejected, EB3 will still be accepted.\"} \n", + "{\"_question\": \"Am I eligible for an EB2 green card if I have a B.Sc in Physics from India and an MCA in IT from India?\",\n", + "\"_answer\": \"It is feasible, but have your attorneys construct the PERM application prudently so that if EB2 is declined, EB3 is still approved.\"} \n", "\n", "\n", "\n", @@ -2184,16 +2333,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Does my wife qualify for EB2 processing with her post professional degree in occupational therapy?\",\n", - "\"_answer\": \"OTs do not have a special category like physical therapists, but it is possible to file for EB2. Consult with her lawyers for more information.\"}\n", + "{\"_question\": \"Does my wife qualify for EB2 processing with her post-professional degree in occupational therapy?\",\n", + "\"_answer\": \"OTs do not have a special category like physical therapists, but EB-2 may be possible. It is best to consult with her lawyers.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the process for my wife to get EB2 with her OT degree?\",\n", - "\"_answer\": \"OTs do not have a special category like physical therapists, but EB2 may be an option. She should speak to her lawyers to find out more.\"}\n", + "{\"_question\": \"What is the likelihood of my wife's post-professional degree in occupational therapy qualifying for EB2 processing?\",\n", + "\"_answer\": \"OTs do not have a special category like physical therapists, but EB-2 may still be a possibility. It is best to speak with her lawyers for more information.\"}\n", "\n", "######\n", - "{\"_question\": \"Can my wife use her OT degree to get EB2?\",\n", - "\"_answer\": \"OTs do not have a special category like physical therapists, but it is possible to apply for EB2. She should consult with her lawyers for more information.\"} \n", + "{\"_question\": \"Does my wife's post-professional degree in occupational therapy provide any special consideration for EB2 processing?\",\n", + "\"_answer\": \"No, OTs do not have a special category like physical therapists. However, EB-2 may still be an option. It is best to consult with her lawyers for more information.\"} \n", "\n", "\n", "\n", @@ -2202,16 +2351,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB-2 green card with 3 years of IT experience and a master's degree?\",\n", - "\"_answer\": \"Yes, you can apply for an EB-2 green card once you have completed your master's degree and have a job that requires such a degree or a bachelor's degree plus five years of experience.\"}\n", + "{\"_question\": \"Do I qualify for an EB2 green card with 3 years of IT experience and a master's degree?\",\n", + "\"_answer\": \"Yes, you can apply for an EB2 green card if you have 3 years of IT experience and a master's degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB-2 green card with 3 years of IT experience and a master's degree?\",\n", - "\"_answer\": \"Yes, you are eligible to apply for an EB-2 green card once you have finished your master's degree and have a job that requires such a degree or a bachelor's degree plus five years of experience.\"}\n", + "{\"_question\": \"Can I apply for an EB2 green card if I have 3 years of IT experience and a master's degree?\",\n", + "\"_answer\": \"Yes, you meet the requirements to submit an EB2 green card application with 3 years of IT experience and a master's degree.\"}\n", "\n", "######\n", - "{\"_question\": \"If I have 3 years of IT experience and a master's degree, can I get an EB-2 green card?\",\n", - "\"_answer\": \"Yes, you can submit an application for an EB-2 green card once you have earned your master's degree and have a job that requires such a degree or a bachelor's degree plus five years of experience.\"} \n", + "{\"_question\": \"Will I be eligible for an EB2 green card if I have 3 years of IT experience and a master's degree?\",\n", + "\"_answer\": \"Yes, you are qualified to apply for an EB2 green card with 3 years of IT experience and a master's degree.\"} \n", "\n", "\n", "\n" @@ -2219,14 +2368,15 @@ } ], "source": [ + "client = OpenAI()\n", "for id, batch_inputs_string in enumerate(qaa_list_encoded):\n", " print(id, \"\\n\") # \"\\n\\n\\n\", \"input:\\n\", batch_inputs_string, \"\\n\"\n", - " completion_batch = openai.Completion.create(\n", - " prompt=batch_inputs_string, \n", + " completion_batch = client.completions.create(\n", + " prompt=batch_inputs_string,\n", " model=\"text-davinci-003\",\n", " temperature = 0.2,\n", " max_tokens = 1000 # The maximum number of tokens to generate in the completion\n", - " )\n", + " ).model_dump()\n", " results_string = completion_batch['choices'][0]['text']\n", " print(results_string, \"\\n\\n\\n\")\n", " qaa_augmented_raw.append(results_string)" @@ -2242,7 +2392,7 @@ }, { "cell_type": "code", - "execution_count": 124, + "execution_count": 15, "id": "6085d004-14b5-48b2-b343-4b0f17112137", "metadata": {}, "outputs": [ @@ -2255,16 +2405,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I need to wait before beginning the green card process if my employer files an H-1B and the lottery is picked?\",\n", - "\"_answer\": \"No, the employer can initiate the green card process prior to your joining. You can review the salary figures by county and profession at this link -https://www.flcdatacenter.com/\"}\n", + "{\"_question\": \"Can I begin the green card process if my H-1B is picked in the lottery and I have a master's degree in engineering management?\",\n", + "\"_answer\": \"Yes, your employer can initiate the green card process even before you start working. You can check the salary requirements for EB-2 advanced degree holders by county and profession by visiting this website - https://www.flcdatacenter.com/\"}\n", "\n", "######\n", - "{\"_question\": \"Can I start the green card process if my employer has filed an H-1B and it has been selected in the lottery?\",\n", - "\"_answer\": \"Yes, the employer can begin the green card process even before you join. Check out this link -https://www.flcdatacenter.com/ to view the salary figures by county and profession.\"}\n", + "{\"_question\": \"If I have a master's degree in engineering management and my employer files my H-1B, can I start the green card process if it is selected in the lottery?\",\n", + "\"_answer\": \"Yes, the green card process can be initiated by the employer before you join. You can view the salary cap for EB-2 advanced degree holders by county and profession by using this link - https://www.flcdatacenter.com/\"}\n", "\n", "######\n", - "{\"_question\": \"If my employer files an H-1B and it is selected in the lottery, when can I start the green card process?\",\n", - "\"_answer\": \"The employer can initiate the green card process prior to your joining. You can examine the salary figures by county and profession at this link -https://www.flcdatacenter.com/\"} \n", + "{\"_question\": \"If I have a master's degree in engineering management and my employer submits my H-1B, can I initiate the green card process if it is chosen in the lottery?\",\n", + "\"_answer\": \"Yes, the employer can begin the green card process even before you join. You can see the salary figures for EB-2 advanced degree holders by county and profession by consulting this website - https://www.flcdatacenter.com/\"} \n", "\n", "\n", "\n", @@ -2273,16 +2423,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the process for upgrading from EB-3 to EB-2 for a pending I-485 application?\",\n", - "\"_answer\": \"It is possible to upgrade from EB-3 to EB-2 as long as the PERM was initially filed as an EB-2. If the PERM was originally filed as an EB-3, it is not possible to upgrade. If the PERM was filed as an EB-2, you can downgrade the I-140 to EB-3 and then upgrade to EB-2 if you have an EB-2 approval. You can then file a second case as EB-3 with the same PERM. For more information, please refer to the FAQs.\"}\n", + "{\"_question\": \"What is the eligibility and process for upgrading from EB-3 to EB-2 status for an I-485 application?\",\n", + "\"_answer\": \"It is possible to upgrade from EB-3 to EB-2 status if the PERM was filed as an EB-2. Downgrading to EB-3 is also possible if the PERM was initially filed as an EB-2. For more information, please refer to the detailed FAQ.\"}\n", "\n", "######\n", - "{\"_question\": \"What is involved in the EB-3 to EB-2 porting process for someone with a pending I-485?\",\n", - "\"_answer\": \"If the PERM was submitted as an EB-2, you can downgrade the I-140 to EB-3 and then upgrade to EB-2 if you have an EB-2 approval. It is also possible to file a second case as EB-3 with the same PERM. However, if the PERM was initially filed as an EB-3, you will not be able to upgrade to EB-2. For more details, please refer to the FAQs.\"}\n", + "{\"_question\": \"Can you explain the process for changing from EB-3 to EB-2 for pending I-485s?\",\n", + "\"_answer\": \"If the PERM was originally filed as an EB-2, it is possible to upgrade or downgrade the I-140. If the PERM was filed as an EB-3, then upgrading to EB-2 is not an option. Further details can be found in the FAQs.\"}\n", "\n", "######\n", - "{\"_question\": \"Can you explain the upgrade process from EB-3 to EB-2 for a pending I-485?\",\n", - "\"_answer\": \"It is possible to move up to EB-2 from EB-3 as long as the PERM was initially filed as an EB-2. If the PERM was originally filed as an EB-3, it is not possible to upgrade. If the PERM was filed as an EB-2, you can downgrade the I-140 to EB-3 and then upgrade to EB-2 if you have an EB-2 approval. You can then file a second case as EB-3 with the same PERM. For further information, please refer to the FAQs.\"} \n", + "{\"_question\": \"What is the procedure for switching from EB-3 to EB-2 for an I-485 that is in progress?\",\n", + "\"_answer\": \"It is possible to move up or down from EB-2 to EB-3, provided the PERM was filed as an EB-2. If the PERM was filed as an EB-3, then upgrading to EB-2 is not possible. Additional information can be found in the FAQs.\"} \n", "\n", "\n", "\n", @@ -2291,31 +2441,30 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the chances of me being approved for an L1A visa? I had an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager, managing five direct reports and four second-level reports with the same company in both countries. I have since been promoted to Director of Software Development Projects Support and Maintenance, and I have an approved I-140 with a priority date of July 2012. Should I apply for an EB-1C/International Managers or Executives now, or should I wait until the visa ban is over?\",\n", - "\"_answer\": \"It is important to discuss your job description and plans for working outside the US with a lawyer from the outset. If you wait until a year down the line, the chances of success will be much lower.\"}\n", + "{\"_question\": \"What are my chances of receiving an L1A visa? I was in the US on an H1B visa for 11 years until August 2019, when I transferred to Canada as a software development manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I was recently promoted to director of software development projects support and maintenance, before completing one year as manager. My I-140 has been approved and my priority date is July 2012. Do I need to be in the US to apply for an EB-1C green card, and can I get an L1A and move to the US if my EB-1C I-140 is approved? Is now the right time to apply for an EB-1C in the next couple of months, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"Please discuss your desired job role outside of the US with your lawyer. It is important to plan ahead for this, as trying to plan a year down the line is unlikely to be successful.\"}\n", "\n", "######\n", - "{\"_question\": \"What are my chances of getting an L1A visa? I was in the US on an H1B for 11 years until August 2019, when I transferred to Canada as a Software Development Manager. I am managing five direct reports and four second-level reports with the same company in both countries, and I have been promoted to Director of Software Development Projects Support and Maintenance. My I-140 has been approved and my priority date is July 2012. Should I submit an EB-1C/International Managers or Executives application now, or should I wait until the visa ban is over?\",\n", - "\"_answer\": \"It is advisable to discuss your job description and plans for working outside the US with a lawyer from the beginning. Waiting until a year down the line will significantly decrease your chances of success.\"}\n", + "{\"_question\": \"What are my prospects of obtaining an L1A visa? I was in the US on an H1B visa for 11 years until August 2019, when I transferred to Canada as a software development manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I was recently promoted to director of software development projects support and maintenance, before completing one year as manager. My I-140 has been approved and my priority date is July 2012. Do I need to be in the US to file for an EB-1C green card, and can I get an L1A and move to the US if my EB-1C I-140 is accepted? Is now the appropriate time to apply for an EB-1C in the next couple of months, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"Discuss the intended job role outside of the US with your lawyer. Planning ahead is essential, as attempting to plan a year down the line is unlikely to be successful.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of me being granted an L1A visa? I had an H1B visa for 11 years until August 2019, when I transferred to Canada as a Software Development Manager. I am managing five direct reports and four second-level reports with the same company in both countries, and I have been recently promoted to Director of Software Development Projects Support and Maintenance. My I-140 has been approved and my priority date is July 2012. Should I apply for an EB-1C/International Managers or Executives now, or should I wait until the visa ban is over?\",\n", - "\"_answer\": \"It is important to consult with a lawyer concerning your job description and plans for working outside the US from the start. If you wait until a year down the line, your chances of approval will be much lower.\"} \n", + "{\"_question\": \"What are the chances of me getting an L1A visa? I was in the US on an H1B visa for 11 years until August 2019, when I transferred to Canada as a software development manager, managing 5 direct reports and 4 second level reports with the same company in both the US and Canada. I was recently promoted to director of software development projects support and maintenance, before completing one year as manager. My I-140 has been approved and my priority date is July 2012. Do I need to be in the US to apply for an EB-1C green card, and can I get an L1A and move to the US if my EB-1C I-140 is approved? Is now the right time to apply for an EB-1C in the next couple of months, or should I wait for the visa ban to end?\",\n", + "\"_answer\": \"Consult with your lawyer regarding the job role you intend to have outside of the US. It is important to plan ahead for this, as attempting to plan a year down the line is unlikely to be successful.\"} \n", "\n", "\n", "\n", "3 \n", "\n", "\n", + "\n", "######\n", - "{\"_question\": \"Is it a good idea to downgrade from eb-2 to eb-3?\",\n", - "\"_answer\": \"It could be a wise decision to apply for eb-3 and then use whichever option is quicker when the time comes.\"}\n", - "######\n", - "{\"_question\": \"Should my wife and I switch from eb-2 to eb-3?\",\n", - "\"_answer\": \"It could be beneficial to submit an application for eb-3 and then use whichever one is faster when the time arrives.\"}\n", + "{\"_question\": \"Would it be a good idea to switch from EB-2 to EB-3 for my wife and I? We have been on EADs since 2012 and have had our cards renewed every two years. The EB-3 category is now ahead of EB-2, so would it make sense for my wife to downgrade and apply for an I-140 under EB-3?\",\n", + "\"_answer\": \"I think it would be a good idea to apply for EB-3 and then use whichever one is faster when the time comes.\"}\n", + "\n", "######\n", - "{\"_question\": \"What would be the best course of action for my wife and I to take regarding eb-2 and eb-3?\",\n", - "\"_answer\": \"It may be advantageous to apply for eb-3 and then select whichever one is faster when the time comes.\"} \n", + "{\"_question\": \"My wife and I have been on EADs since 2012 and have been renewing our cards every two years. The EB-3 category is now ahead of EB-2. Would it be a good move for my wife to switch to EB-3 and apply for an I-140 under that category?\",\n", + "\"_answer\": \"It would be a good idea to submit an application for EB-3 and then decide which one is faster when the time comes.\"} \n", "\n", "\n", "\n", @@ -2324,12 +2473,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the requirements for getting an H-1B visa for three years, not a shorter duration? I got my H1B approved for one year, expiring on October 27th, 2019. I work through a consultancy. What steps can I take to ensure I get the H1B approved for three years when I apply for an extension after October 27th, 2019? Are there any particular documents I need? If I go for stamping, do I need to be careful with social media at the port of entry? Are there any tips or recommendations you can give with reference to social media during port of entry? My EB2 priority date is February 4th, 2015 and I'm planning to marry a girl who is a Nepal citizen and she's on OPT right now. Can I move my priority date to EB2 Nepal category after marriage? If yes, what would be my next steps and how soon can I file for I-485 interview?\", \n", - "\"_answer\": \"Typically the only way you can get three year extension is if you can prove that the project will go on for three years.\"}\n", + "{\"_question\": \"What measures can I take to receive a three year H-1B approval instead of a shorter duration? I received my H-1B approval for one year and it expires on October 27th, 2019. I am employed through a consultancy. Is there anything I can do to help secure a three year extension after October 27th, 2019?\", \n", + "\"_answer\": \"The only way to get a three year extension is to demonstrate that the project will continue for that amount of time.\"}\n", "\n", "######\n", - "{\"_question\": \"What do I need to do to be approved for an H-1B visa for three years, not a shorter duration? I have an H1B that was approved for one year, expiring on October 27th, 2019. I am employed through a consultancy. What can I do to ensure I get the H1B approved for three years when I apply for an extension after October 27th, 2019? Are there any documents I should prepare? If I go for stamping, should I be careful with my social media at the port of entry? Are there any tips or recommendations you can give me regarding social media during port of entry? My EB2 priority date is February 4th, 2015 and I'm planning to marry a girl who is a Nepal citizen and she's on OPT right now. Can I move my priority date to EB2 Nepal category after marriage? If yes, what would be my next steps and how quickly can I file for I-485 interview?\",\n", - "\"_answer\": \"Generally the only way you can get three year extension is if you can demonstrate that the project will go on for three years.\"} \n", + "{\"_question\": \"What can I do to ensure that my H-1B extension is approved for three years, not just one? My current H-1B was approved for a single year and will expire on October 27th, 2019. I am employed by a consultancy. Are there any steps I can take to help ensure that I receive a three year extension after October 27th, 2019?\",\n", + "\"_answer\": \"The only way to guarantee a three year extension is to prove that the project will last for that duration.\"} \n", "\n", "\n", "\n", @@ -2338,16 +2487,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"what other choices do i have if i am unable to find a job before my h1-b and i-94 expire in mid-august 2019?\", \n", - "\"_answer\": \"You can look into applying for a tourist visa or tourist status, although I don't think you will get it.\"}\n", + "{\"_question\": \"What are my options for remaining in the United States after my H-1B and I-94 expire in mid-August 2019?\",\n", + "\"_answer\": \"I don't think you would be able to obtain a tourist visa or tourist status, but you can apply for it.\"}\n", "\n", "######\n", - "{\"_question\": \"what are my options if I don't secure a job before my h1-b and i-94 end in the middle of August 2019?\", \n", - "\"_answer\": \"You may be able to apply for a tourist visa or tourist status, although there is no guarantee you will receive it.\"}\n", + "{\"_question\": \"What can I do to legally stay in the USA after my H-1B and I-94 end in mid-August 2019?\",\n", + "\"_answer\": \"You may not be able to get a tourist visa or tourist status, however, you can try to apply for one.\"}\n", "\n", "######\n", - "{\"_question\": \"what are the possibilities if I don't get a job before my h1-b and i-94 terminate in mid-August 2019?\", \n", - "\"_answer\": \"You could try applying for a tourist visa or tourist status, though it is unlikely that you will be successful.\"} \n", + "{\"_question\": \"What are the possibilities for me to remain in the USA following the expiration of my H-1B and I-94 in mid-August 2019?\",\n", + "\"_answer\": \"It is unlikely that you will be able to acquire a tourist visa or tourist status, but you can attempt to apply for it.\"} \n", "\n", "\n", "\n", @@ -2356,16 +2505,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to downgrade my case from EB-2 to EB-3 in order to take advantage of an earlier priority date, while still keeping my existing EB-2 filing intact? If so, what is the process for doing so? Do I need to complete the labor and I-140 again?\",\n", - "\"_answer\": \"Your EB-2 will remain unaffected. You can file an EB-3/I-140 and, if your dates are current, you may be able to file an I-485 as well.\"}\n", + "{\"_question\": \"Can my employer submit a concurrent application for me in EB-3 without impacting my existing EB-2 filing?\",\n", + "\"_answer\": \"Your EB-2 will not be affected. You can file an EB-3/I-140 and if your dates are current, you may be able to file an I-485 as well.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I switch my EB-2 case to an EB-3, taking advantage of an earlier priority date, without having to abandon my existing EB-2 filing? What is the process for doing this? Do I need to redo my labor and I-140?\",\n", - "\"_answer\": \"Your EB-2 will remain unaffected. You may submit an EB-3/I-140 and, if your dates are current, you could also file an I-485.\"}\n", + "{\"_question\": \"Would it be possible for my employer to submit a concurrent application in EB-3, without affecting my current EB-2 filing?\",\n", + "\"_answer\": \"Your EB-2 would remain unaffected. You can file an EB-3/I-140 and if your dates are current, you may be able to file an I-485 too.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to downgrade from EB-2 to EB-3 to gain priority date advantage without compromising my existing EB-2 filing? How do I go about doing this? Is it necessary to redo the labor and I-140?\",\n", - "\"_answer\": \"Your EB-2 will stay intact. You can file an EB-3/I-140 and, if your dates are current, you can also submit an I-485.\"} \n", + "{\"_question\": \"Is it feasible to have my employer submit a concurrent application in EB-3 without affecting my current EB-2 filing?\",\n", + "\"_answer\": \"Your EB-2 will stay the same. You can submit an EB-3/I-140 and if your dates are current, you may be able to file an I-485 as well.\"} \n", "\n", "\n", "\n", @@ -2374,30 +2523,31 @@ "\n", "\n", "######\n", - "{\"_question\": \"Will I still be eligible for EB-3 if the priority date reaches my date of application, even though I originally applied for EB-2?\",\n", - "\"_answer\": \"This is largely a matter of policy and procedure. USCIS has suggested that if you have an I-140 approved under EB-2 but wish to file under EB-3, you must submit another I-140 with a copy of the same labor certification and get an EB-3 approval first.\"}\n", + "{\"_question\": \"I already have an EB-2 approval and I switched to EB-3 in 2011. The EB-3 dates are now advancing and if they reach my priority date, can I still apply for EB-3 or do I have to downgrade to EB-3? Will there be any issues that arise?\",\n", + "\"_answer\": \"This is mainly a question of protocol and rules. The USCIS has been indicating that if you have one I-140 approval under EB-2, but you want to apply for EB-3, you must file a new I-140 using the same labor certification - PERM application and get an EB-3 approval first.\"}\n", "\n", "######\n", - "{\"_question\": \"If the EB-3 priority date reaches my date of application, am I still able to use the EB-3 category even though I initially applied for EB-2?\",\n", - "\"_answer\": \"This is mostly a matter of rules and regulations. The USCIS has indicated that if you have one I-140 approved for EB-2 but desire to use EB-3, you must submit a new I-140 with a duplicate of the same labor certification and get an EB-3 approval first.\"}\n", + "{\"_question\": \"I have an EB-2 approval and I changed to EB-3 back in 2011. The EB-3 dates are now progressing and if they reach my priority date, am I allowed to still apply for EB-3 or do I have to lower it to EB-3? Would there be any queries raised?\",\n", + "\"_answer\": \"This is mostly a question regarding process and policy. The USCIS has been indicating that if you have a single I-140 approved under EB-2 but you desire to submit under EB-3, you have to file another I-140 using the same labor certification - PERM application and get an EB-3 approval first.\"}\n", "\n", "######\n", - "{\"_question\": \"If the EB-3 priority date reaches the date I applied, can I still use EB-3 even though I initially applied for EB-2?\",\n", - "\"_answer\": \"This is mostly a question of procedure and policy. The USCIS has stated that if you have an I-140 approved under EB-2 but want to use EB-3, you have to submit another I-140 with a copy of the same labor certification and receive an EB-3 approval first.\"} \n", + "{\"_question\": \"I have an EB-2 approval and I switched to EB-3 in 2011. The EB-3 dates are now moving forward and if it reaches my priority date, am I still allowed to apply for EB-3 or do I need to lower it to EB-3? Would there be any questions asked?\",\n", + "\"_answer\": \"This is mostly a question of procedure and policy. The USCIS has been indicating that if you have a single I-140 approved under EB-2 but you want to file under EB-3, you must file another I-140 using the same labor certification - PERM application and get an EB-3 approval first.\"} \n", "\n", "\n", "\n", "8 \n", "\n", "\n", - "\n", "######\n", - "{\"_question\": \"What are the implications for my naturalization/citizenship if I have not worked for the green card sponsoring company? To summarize, I worked for the same company from 2004 to 2014 (2004 - 2011 in the US on H1B, and 2011-2014 in India). After receiving my green card, I did not work for the same company in the US and I do not have a single paycheck from a US company after receiving the green card. Since then, I have been working in a job with the same job description that my green card was filed for. All other history is clean - I have two US-born children, always paid taxes on time, and no legal cases. I heard from reliable sources that under current circumstances, my case will be marked as fraud and there is a 99% chance that they will revoke my green card and deport me, as I did not stay with the employer that sponsored my green card. What should I be concerned about? What are my options? I have the option of going back to the same employer now. Does that help? If my wife applies for naturalization instead of me, is that going to be any different?\",\n", - "\"_answer\": \"This is a tricky situation. I would argue that this is acceptable since you received the green card and took the job, and you are just temporarily working for the company's operations outside the US. It could go either way, so I suggest consulting with a lawyer. You should consider your options, and if going back to the same employer now would help. Additionally, if your wife applies for naturalization instead of you, that could make a difference.\"}\n", - "\n", + "{\"_question\": \"Will my case be marked as fraud if I have not worked for the green card sponsoring company after receiving my green card and have been working in a job with the same job description that my green card was filed for instead?\",\n", + "\"_answer\": \"This is a difficult situation. It could be argued that this is acceptable as you took the job after receiving the green card and are only working for the company's operations outside the US temporarily. It may be a bit of a risk, but that is what I would suggest. You should definitely seek legal advice.\"}\n", "######\n", - "{\"_question\": \"What are the consequences for my naturalization/citizenship if I have not worked for the green card sponsoring company? To give a brief overview, I worked for the same company from 2004 to 2014 (2004 - 2011 in the US on H1B, and 2011-2014 in India). After getting my green card, I did not work for the same company in the US and I do not have a single paycheck from a US company after receiving the green card. Since then, I have been working in a job with the same job description that my green card was filed for. All other history is clean - I have two US-born children, always paid taxes on time, and no legal cases. I heard from reliable sources that under current circumstances, my case will be marked as fraud and there is a 99% chance that they will revoke my green card and deport me, as I did not stay with the employer that sponsored my green card. What should I be worried about? What are my choices? I have the option of going back to the same employer now. Does that help? If my wife applies for naturalization instead of me, is that going to be any different?\",\n", - "\"_answer\": \"This is a difficult situation. I would suggest that this is acceptable since you obtained the green card and took the job, and you are just temporarily working for the company's operations outside the US. It is uncertain, so I recommend consulting with a lawyer. You should contemplate your options, and if returning to the same employer now would help. Furthermore, if your wife applies for naturalization instead of you, that could make a difference.\"} \n", + "{\"_question\": \"What are the chances of my green card being revoked and me being deported if I have not continued to work for the company that sponsored my green card after receiving it?\",\n", + "\"_answer\": \"This is a difficult situation. I would suggest that there is a chance that this is acceptable as you got the green card and took the job and are now only temporarily working for the company's operations outside the US. It may be a bit of a gamble, but that is what I would suggest. You should strongly consider consulting a lawyer.\"}\n", + "######\n", + "{\"_question\": \"If my wife applies for naturalization instead of me, will this situation be any different?\",\n", + "\"_answer\": \"This is a tricky situation. I would argue that this is acceptable as you went and got the green card and took the job and are now just working for the company's operations outside the US temporarily. It may be a bit of a risk, but that is what I would suggest. You should definitely get legal advice.\"} \n", "\n", "\n", "\n", @@ -2406,16 +2556,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What will happen if I downgrade from EB-2 to EB-3 and my newly filed I-140 is denied? Will my already approved I-140 in EB-2 be affected?\",\n", - "\"_answer\": \"If you file a I-485 that is prematurely filed when the priority date of EB-2 is not current, and the EB-3 filing gets denied, then the I-485 will also be denied. It is important to have your lawyer review your case carefully to make sure that there are no other issues. If the second EB-3 filing is denied, it should not have any impact on the previously approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", + "{\"_question\": \"What will happen if I attempt to downgrade from an EB2 to an EB3 and my newly filed I-140 is denied? Can I still use my previously approved I-140?\",\n", + "\"_answer\": \"If you have an EB-2 approved I-140, you can apply for an EB-3 approval on the same form or you can file an EB-3 I-140 and I-485 concurrently if the dates are current. If the I-485 is prematurely filed when the priority date of EB-2 is not current and the EB-3 is denied, the I-485 will also be denied. It is recommended that you have your lawyers review your case carefully to ensure there are no other issues. If the second EB-3 filing is denied, it should not have an impact on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the consequences if I refile for an EB-3 approval and my I-140 is denied? Will my approved I-140 in EB-2 be impacted?\",\n", - "\"_answer\": \"If an I-485 is filed before the priority date of the EB-2 is current, and the EB-3 filing is denied, then the I-485 will also be denied. It is important to have your lawyer carefully review your case to ensure that there are no other issues. If the second EB-3 filing is denied, it should not affect the already approved I-140 unless the second filing brings to light a problem with the case that was not previously addressed.\"}\n", + "{\"_question\": \"What will be the outcome if I attempt to change my status from EB-2 to EB-3 and my new I-140 is rejected? Can I still utilize my previously approved I-140?\",\n", + "\"_answer\": \"If you have an EB-2 approved I-140, you can apply for an EB-3 approval on the same form or you can file an EB-3 I-140 and I-485 concurrently if the dates are current. If the I-485 is submitted prematurely when the priority date of EB-2 is not current and the EB-3 is rejected, the I-485 will also be denied. It is recommended that you have your lawyers review your case thoroughly to make sure there are no other issues. If the second EB-3 filing is denied, it should not affect the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"}\n", "\n", "######\n", - "{\"_question\": \"What happens if I apply for an EB-3 and my I-140 is denied? Will my previously approved I-140 in EB-2 be impacted?\",\n", - "\"_answer\": \"If an I-485 is submitted before the priority date of the EB-2 is current, and the EB-3 filing is denied, then the I-485 will also be denied. It is important to have your lawyer examine your case thoroughly to ensure that there are no other issues. If the second EB-3 filing is denied, it should not affect the already approved I-140 unless the second filing reveals a problem with the case that was not previously addressed.\"} \n", + "{\"_question\": \"What will happen if I try to downgrade from EB-2 to EB-3 and my new I-140 is refused? Can I still use my previously approved I-140?\",\n", + "\"_answer\": \"If you have an EB-2 approved I-140, you can apply for an EB-3 approval on the same form or you can file an EB-3 I-140 and I-485 concurrently if the dates are current. If the I-485 is submitted prematurely when the priority date of EB-2 is not current and the EB-3 is refused, the I-485 will also be denied. It is recommended that you have your lawyers review your case carefully to ensure there are no other issues. If the second EB-3 filing is denied, it should not have an impact on the already approved I-140 unless the second filing reveals a problem with the case that was not addressed earlier.\"} \n", "\n", "\n", "\n", @@ -2424,16 +2574,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What do I need to do to get a master's degree from an accredited university to process an EB-2 green card?\",\n", - "\"_answer\": \"To obtain an EB-2 green card, you must obtain a master's degree from an accredited university. You can check with your university to find out which state-level agency has accredited their programs.\"}\n", + "{\"_question\": \"What is necessary to get an EB-2 green card with a master's degree?\",\n", + "\"_answer\": \"You must obtain your degree from an accredited university in order for the educational evaluation to be completed and approved for an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the requirement to obtain an EB-2 green card?\",\n", - "\"_answer\": \"To get an EB-2 green card, you must have a master's degree from an accredited university. Your university should be able to provide you with information on the state-level agency that has accredited their programs.\"}\n", + "{\"_question\": \"What do I need to do to get an EB-2 green card with a master's degree?\",\n", + "\"_answer\": \"You must have your master's degree from an accredited university in order for the educational evaluation to be accepted for an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"What do I need to do to be eligible for an EB-2 green card?\",\n", - "\"_answer\": \"In order to be eligible for an EB-2 green card, you must have a master's degree from an accredited university. Your university can provide you with information on the state-level agency that has accredited their programs.\"} \n", + "{\"_question\": \"How can I get an EB-2 green card with a master's degree?\",\n", + "\"_answer\": \"In order to be approved for an EB-2 green card, you must have your master's degree from an accredited university and have the educational evaluation completed.\"} \n", "\n", "\n", "\n", @@ -2442,16 +2592,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can an individual with F-1 status begin a green card process?\", \n", - "\"_answer\": \"Individuals from countries with backlogged priority dates like India, China, Philippines, and Mexico may not be able to start a green card process while on F-1 status, as this status does not permit dual intent. However, those from countries with non-backlogged priority dates such as Saudi Arabia, Pakistan, Nepal, or Europe may be able to complete the green card process within a year in an EB-1, EB-2, or EB-3 category.\"}\n", + "{\"_question\": \"Can I begin the green card process while on F-1 status? I am on F1 OPT status and employed by Company A, and my employer has filed for H1B status this year. I am currently waiting for my H1B approval. Is it possible to start the green card process while I am in F1 status?\",\n", + "\"_answer\": \"For people from countries with extremely backlogged priority dates, such as India, China, the Philippines, and Mexico, it is risky to begin the green card process while on F-1 status, as this status does not permit dual intent. This means that filing for a green card while in such a status could result in difficulty receiving extensions, visa stamping, or re-entry into the United States. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or anywhere in Europe, where priority dates are not backlogged, it may be possible to complete the green card process within a year in the EB-1, EB-2, or EB-3 category.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to initiate a green card application while on F-1 status?\", \n", - "\"_answer\": \"For individuals from countries with backlogged priority dates like India, China, Philippines, and Mexico, beginning a green card process while on F-1 status is not recommended, as this status does not allow for dual intent. However, those from countries with non-backlogged priority dates like Saudi Arabia, Pakistan, Nepal, or Europe may be able to finish the green card process within a year under an EB-1, EB-2, or EB-3 category.\"}\n", + "{\"_question\": \"Is it possible to initiate a green card application while on F-1 status? I am currently on F1 OPT and employed by Company A, and my employer has applied for H1B status this year. I am waiting for H1B approval. Can I start the green card process while I am on F1 status?\",\n", + "\"_answer\": \"Individuals from countries with extremely backlogged priority dates, such as India, China, the Philippines, and Mexico, should be wary of beginning the green card process while on F-1 status, as this status does not allow for dual intent. This could lead to complications when applying for extensions, visa stamping, or re-entry into the United States. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or anywhere in Europe, where priority dates are not backlogged, it may be possible to complete the green card process in the EB-1, EB-2, or EB-3 category within a year.\"}\n", "\n", "######\n", - "{\"_question\": \"Can someone on F-1 visa status begin the green card process?\", \n", - "\"_answer\": \"Individuals from countries with delayed priority dates such as India, China, Philippines, and Mexico should not start a green card process while on F-1 visa status, as this status does not permit dual intent. However, those from countries with non-delayed priority dates like Saudi Arabia, Pakistan, Nepal, or Europe may be able to complete the green card process within a year in an EB-1, EB-2, or EB-3 category.\"} \n", + "{\"_question\": \"Can I start the green card process while on F-1 status? I am currently on F1 OPT and working for Company A, and my employer has filed for H1B status this year. I am awaiting my H1B approval. Is it possible to initiate the green card process while I am in F1 status?\",\n", + "\"_answer\": \"For individuals from countries with extremely backlogged priority dates, such as India, China, the Philippines, and Mexico, it is not advisable to initiate the green card process while on F-1 status, as this status does not permit dual intent. This could result in difficulty when applying for extensions, visa stamping, or re-entry into the United States. However, for those from countries such as Saudi Arabia, Pakistan, Nepal, or anywhere in Europe, where priority dates are not backlogged, it may be possible to complete the green card process within a year in the EB-1, EB-2, or EB-3 category.\"} \n", "\n", "\n", "\n", @@ -2460,12 +2610,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I submit several green card applications simultaneously? What would be the consequences? My employer filed for an EB-2 green card with a priority date of 2013. Could I try to get an EB-1 green card personally? Would the EB-1 status affect the EB-2 green card? Would the job description have to match in both EB-1 and EB-2? What potential issues might arise?\",\n", - "\"_answer\": \"Yes, you can submit multiple green card applications at the same time, including a combination of employment and family or investment applications. As long as the applications are filed honestly, any number of green cards can be filed. Trying for an EB-1 green card will not affect the EB-2 green card, but the job description should match for both EB-1 and EB-2. Potential issues may arise, so it is important to be aware of them.\"}\n", + "{\"_question\": \"Can I submit multiple green card applications at the same time? What are the potential repercussions of doing so? My employer has already filed for my green card in the EB-2 category and I-140 has been approved with a priority date of 2013. If I decide to apply for the EB-1 category myself, will it have any impact on my EB-2 green card? Is the job description required to be the same for both categories? What are the possible problems that may arise?\",\n", + "\"_answer\": \"Yes, you can submit multiple green card applications simultaneously. This can be done through employment, family or investment. As long as the applications are filed honestly, there should be no issues. If you decide to apply for the EB-1 category yourself and it is not approved, it will not affect your EB-2 green card. The job description does not need to be the same for both categories. However, there may be potential problems that could arise.\"}\n", + "\n", + "######\n", + "{\"_question\": \"Is it feasible to submit multiple green card applications at the same time? What are the risks of doing so? My employer has already filed for my green card in the EB-2 category and I-140 has been approved with a priority date of 2013. If I attempt to apply for the EB-1 category myself, will it have an effect on my EB-2 green card? Should the job description be similar for both categories? What are the possible issues that could arise?\",\n", + "\"_answer\": \"Yes, it is possible to submit multiple green card applications simultaneously. This can be done through employment, family or investment. As long as the applications are filed honestly, there should be no issues. If you attempt to apply for the EB-1 category yourself and it is not approved, it will not affect your EB-2 green card. The job description does not need to be the same for both categories. However, there may be potential issues that could arise.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for multiple green cards at once? What are the repercussions? My employer has filed an EB-2 green card with a 2013 priority date. Is it possible for me to attempt to get an EB-1 green card independently? Will the EB-1 status have any effect on the EB-2 green card? Must the job description be the same for EB-1 and EB-2? What could possibly go wrong?\",\n", - "\"_answer\": \"Yes, you can file for various green cards at the same time, including both employment and family or investment applications. You can file as many green cards as you like as long as they are filed truthfully. Trying for an EB-1 green card will not interfere with the EB-2 green card, but the job description must match for both EB-1 and EB-2. It is important to be aware of the potential issues that may arise.\"} \n", + "{\"_question\": \"Can I file multiple green card applications at the same time? What are the potential consequences of doing so? My employer has already filed for my green card in the EB-2 category and I-140 has been approved with a priority date of 2013. If I attempt to apply for the EB-1 category myself, will it have an impact on my EB-2 green card? Must the job description be identical for both categories? What are the possible problems that may occur?\",\n", + "\"_answer\": \"Yes, you can file multiple green card applications simultaneously. This can be done through employment, family or investment. As long as the applications are filed honestly, there should be no issues. If you attempt to apply for the EB-1 category yourself and it is not approved, it will not affect your EB-2 green card. The job description does not need to be the same for both categories. However, there may be possible problems that could arise.\"} \n", "\n", "\n", "\n", @@ -2474,16 +2628,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the duration of the NIW process? Does it take as long as the EB2 application? Can I change employers during the process?\",\n", - "\"_answer\": \"If you are a self-applicant and will continue to work in your stated area of national interest, you can change employers any time. The NIW priority date will take the same time as a normal EB-2 application does. See: http://www.immigration.com/visa-bulletinunder employment-based category 2.\"}\n", + "{\"_question\": \"How long will the NIW processing take? I'm in the EB-2 category and I'm wondering if it will take a while before I get my EAD card and can switch employers. Is there any risk associated with changing employers during the process? I'd rather switch before starting the process.\",\n", + "\"_answer\": \"There are no risks associated with changing employers if you are a self-applicant and will continue to work in your stated area of national interest. However, the NIW priority date will take the same amount of time to process as a normal EB-2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", "\n", "######\n", - "{\"_question\": \"How long does the NIW application take? Is it the same as the EB2 filing? Is it okay to change employers during the process?\",\n", - "\"_answer\": \"Switching employers is permissible if you are a self-applicant and will continue to work in your stated area of national interest. The NIW timeline is the same as the EB2 application timeline. See: http://www.immigration.com/visa-bulletinunder employment-based category 2.\"}\n", + "{\"_question\": \"Can you tell me about the time frame for NIW processing? I'm in the EB-2 category and I'm wondering if it will take a while before I can get my EAD card and switch employers. Is there any danger involved in changing employers during the process? I'd rather switch before starting the process.\",\n", + "\"_answer\": \"There is no danger associated with changing employers if you are a self-applicant and will keep working in your declared area of national interest. Nevertheless, the NIW priority date will take the same length of time to process as a regular EB-2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the processing time for NIW? Is it the same as the EB2 filing? Can I switch employers while the application is being processed?\",\n", - "\"_answer\": \"If you are a self-applicant and will work in your stated area of national interest, you can switch employers at any time. The NIW processing time is the same as the EB2 filing. See: http://www.immigration.com/visa-bulletinunder employment-based category 2.\"} \n", + "{\"_question\": \"How long will the NIW processing take? I'm in the EB-2 category and I'm concerned that it might take a while before I get my EAD card and can switch employers. Is there any hazard associated with changing employers during the process? I'd rather switch before starting the process.\",\n", + "\"_answer\": \"There are no hazards associated with changing employers if you are a self-applicant and will keep working in your specified area of national interest. However, the NIW priority date will take the same amount of time to process as a usual EB-2 application. See http://www.immigration.com/visa-bulletin under the Employment-Based Category 2.\"} \n", "\n", "\n", "\n", @@ -2492,16 +2646,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"I got my I-140 approved and EAD with the EB2 category in April 2012. My employer did not provide me with the green card documents such as my I-140 approval copy, labor code, etc. Is it possible to get the original documents from USCIS using form G-884 (returns of original documents) without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to request the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). FOIA should be used for the purpose you are considering.\"}\n", + "{\"_question\": \"what is the purpose of form g-884 (returns of original documents)? i received my i-140 approval and ead with eb2 category in april 2012. my employer did not provide me with a copy of my green card documents like i-140 approval, labor certification, etc. i only have the receipt copies of i-140 and i-485. i heard that i can use g-884 to retrieve all my green card documents from uscis. can i do this without knowing my employer's information?\",\n", + "\"_answer\": \"form g-884 is used to request the return of documents you had sent to uscis (e.g., your college degrees and diplomas). use foia for the purpose you are considering.\"}\n", "\n", "######\n", - "{\"_question\": \"I was approved for my I-140 and EAD with the EB2 category in April 2012, but my employer did not give me the green card documents like the I-140 approval copy, labor code, etc. Is it possible to retrieve the original documents from USCIS with form G-884 (returns of original documents) without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to ask for the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). FOIA should be used for the purpose you are looking for.\"}\n", - "\n", - "######\n", - "{\"_question\": \"I obtained my I-140 approval and EAD with EB2 category in April 2012, but my employer did not give me the green card documents such as the I-140 approval copy, labor code, etc. Can I get the original documents from USCIS using form G-884 (returns of original documents) without knowing my employer?\",\n", - "\"_answer\": \"Form G-884 is used to request the return of documents you had sent to USCIS (e.g., your college degrees and diplomas). FOIA should be used for the purpose you are considering.\"} \n", + "{\"_question\": \"what is the goal of form g-884 (returns of original documents)? i got my i-140 approved and ead with eb2 category in april 2012. my employer did not provide me with a copy of my green card documents like i-140 approval, labor certification, etc. i only have the receipt copies of i-140 and i-485. i heard that i can use g-884 to get all my green card documents from uscis. can i do this without knowing my employer's details?\",\n", + "\"_answer\": \"form g-884 is intended to request the return of documents you had sent to uscis (e.g., your college degrees and diplomas). use foia for the purpose you are considering.\"} \n", "\n", "\n", "\n", @@ -2510,16 +2660,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I submit an adjustment of status application concurrently with the form I-140 if my 'Schedule A' application falls into the EB-2 or Employment Based Second Preference category?\",\n", - "\"_answer\": \"Submitting an adjustment of status concurrently with the form I-140 is only possible if your priority date for EB-2 is current and not backlogged.\"}\n", + "{\"_question\": \"Can I submit an adjustment of status application if my EB-2 physical therapist application falls under the Schedule A category?\", \n", + "\"_answer\": \"Yes, you may be able to file concurrently if the priority date for EB-2 is not backlogged.\"}\n", "\n", "######\n", - "{\"_question\": \"If my 'Schedule A' application is classified as EB-2 or Employment Based Second Preference, can I file an adjustment of status application at the same time as the form I-140?\",\n", - "\"_answer\": \"Concurrent filing is allowed only if your EB-2 priority date is current and not backlogged.\"}\n", + "{\"_question\": \"If I'm applying for an EB-2 physical therapist under the Schedule A category, can I submit an adjustment of status application?\", \n", + "\"_answer\": \"Yes, if the priority date for EB-2 is not delayed, you can file concurrently.\"}\n", "\n", "######\n", - "{\"_question\": \"If I qualify for EB-2 or Employment Based Second Preference under 'Schedule A', can I simultaneously file an adjustment of status application with the form I-140?\",\n", - "\"_answer\": \"Submitting an adjustment of status concurrently is only possible if your EB-2 priority date is current and not delayed.\"} \n", + "{\"_question\": \"If I'm applying for an EB-2 physical therapist under the Schedule A category, can I simultaneously file an adjustment of status application?\", \n", + "\"_answer\": \"Yes, you may be able to do so if the priority date for EB-2 is not delayed.\"} \n", "\n", "\n", "\n", @@ -2528,16 +2678,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"With regards to Obama's immigration action, if I am on an H-1B visa and my I-140 has been approved in the EB-2 category, but I am waiting for the dates to become current, will I get an Employment Authorization Document?\",\n", - "\"_answer\": \"I have heard that there is a suggestion to allow for the filing of I-485 at the I-140 stage, without needing the priority dates to be current. This, if put into practice, would provide you with an EAD as well as the ability to switch jobs under AC21. Unfortunately, there is no clear evidence of this proposal in any government document as of now.\"}\n", + "{\"_question\": \"What is the status of Obama's immigration action EAD at the I-140 stage? I'm on an H-1B visa and have had my I-140 approved in the EB-2 category, but I'm still waiting for the dates to become current. Will I be granted any EAD or other forms of authorization based on the executive action?\",\n", + "\"_answer\": \"I have heard that there is a proposal to allow filing of I-485 at the I-140 stage, without needing to wait for the priority dates to become current. If this is implemented, it would get you an EAD as well as the right to change jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government documents yet.\"}\n", "\n", "######\n", - "{\"_question\": \"In regards to Obama's immigration action, if I am on a H-1B visa and my I-140 has been approved in the EB-2 category, but I am waiting for the dates to get current, will I get an Employment Authorization Document?\",\n", - "\"_answer\": \"I have heard that there is a proposal to allow filing of I-485 at the I-140 stage, without requiring the priority dates to be current. This, if implemented, would give you an EAD as well as the freedom to change jobs under AC21. Unfortunately, there is no definite proof of this proposal in any government document as of now.\"}\n", + "{\"_question\": \"What is the current status of Obama's immigration EAD at the I-140 stage? I'm on an H-1B visa and have gotten my I-140 approved in the EB-2 category, but I'm still waiting for the dates to be updated. Could I be given an EAD or other forms of authorization based on the executive action?\",\n", + "\"_answer\": \"I have heard that there is a proposal to allow filing of I-485 at the I-140 stage, without needing to wait for the priority dates to be updated. If this is implemented, it would get you an EAD as well as the right to change jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government documents yet.\"}\n", "\n", "######\n", - "{\"_question\": \"Regarding Obama's immigration action, if I am on an H-1B visa and my I-140 has been approved in the EB-2 category, but I am waiting for the dates to be current, will I get an Employment Authorization Document?\",\n", - "\"_answer\": \"I have heard that there is a suggestion to permit the filing of I-485 at the I-140 stage, without needing the priority dates to be current. This, if carried out, would provide you with an EAD as well as the right to switch jobs under AC21. Unfortunately, there is no definite indication of this proposal in any government document up to this point.\"} \n", + "{\"_question\": \"What is the present situation of Obama's immigration action EAD at the I-140 stage? I'm on an H-1B visa and have had my I-140 approved in the EB-2 category, but I'm still waiting for the dates to be current. Will I be provided any EAD or other forms of authorization based on the executive action?\",\n", + "\"_answer\": \"I have heard that there is a proposal to allow filing of I-485 at the I-140 stage, without needing to wait for the priority dates to be current. If this is implemented, it would get you an EAD as well as the right to alter jobs under AC21. Unfortunately, there is no clear indication about this proposal in any government documents yet.\"} \n", "\n", "\n", "\n", @@ -2546,15 +2696,15 @@ "\n", "\n", "######\n", - "{\"_question\": \"What can I do to expedite my background checks for my I-485 application? I am an EB-2 with priority date of June 2008 and have already provided fingerprints 2.5 years ago.\", \n", + "{\"_question\": \"What are the options for expediting a government delay in the EB-2 category with a priority date of June 2008 and an I-485 application filed in January 2012, which became current in July 2014, with background checks still pending?\", \n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"}\n", "\n", "######\n", - "{\"_question\": \"How can I hasten the background checks for my I-485 application? My priority date is June 2008 and I have already submitted fingerprints 2.5 years ago.\", \n", + "{\"_question\": \"What can be done to speed up the government process for an EB-2 with a priority date of June 2008 and an I-485 application filed in January 2012, which became current in July 2014, with background checks still not completed?\", \n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"}\n", "\n", "######\n", - "{\"_question\": \"What steps can I take to speed up the background checks for my I-485 application? I have a priority date of June 2008 and already gave fingerprints 2.5 years ago.\", \n", + "{\"_question\": \"What are the options available to an EB-2 with a priority date of June 2008 and an I-485 application filed in January 2012, which became current in July 2014, with background checks still in progress for expediting the process?\", \n", "\"_answer\": \"see the marked clip below from rajiv's video recording for the answer to this question.https://www.youtube.com/watch?feature=player_detailpage&list=uum4s1qwos\"} \n", "\n", "\n", @@ -2564,16 +2714,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I present my experience with my current employer in India while filing for permanent residency?\",\n", - "\"_answer\": \"Generally, you are able to use the experience gained from an employer who has a different tax identification number than the one filing the petition.\"}\n", + "{\"_question\": \"Can I use my experience with my current employer in India while filing for permanent residency?\",\n", + "\"_answer\": \"Yes, it is generally permissible to use experience gained with an employer who has a different tax ID number than the petitioning employer.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I include my experience with my current employer in India while applying for green card?\",\n", - "\"_answer\": \"In general, you can use the experience you gained with an employer who has a different tax ID number than the petitioner.\"}\n", + "{\"_question\": \"Is it allowed to include my Indian experience with my current employer while applying for permanent residency?\",\n", + "\"_answer\": \"Yes, you can usually utilize the experience you gained with an employer with a different tax ID number than the petitioning employer.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I use my experience with my current employer in India while filing for a green card?\",\n", - "\"_answer\": \"Generally, it is possible to utilize the experience acquired from an employer who has a different tax identification number than the one filing the petition.\"} \n", + "{\"_question\": \"Can I utilize my experience with my current employer in India to apply for permanent residency?\",\n", + "\"_answer\": \"Yes, you can typically use the experience gained with an employer who has a different tax ID number than the petitioning employer.\"} \n", "\n", "\n", "\n", @@ -2582,16 +2732,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do internships count towards the number of years of work after school? I have two US bachelor's degrees - a 3-year bachelor degree in science and a 2-year bachelor's degree in engineering - and am considering applying for an EB-2 visa. If I don't qualify for the EB-2, I have worked for around four years in my current job. Should I wait another year and then apply for the EB-2 or should I just file for the EB-3 visa now?\",\n", - "\"_answer\": \"Internships do count as experience. You will need to have your degrees evaluated under AACRAO Edge standards first.\"}\n", + "{\"_question\": \"What is the AACRAO EDGE standard and does it account for internships?\", \n", + "\"_answer\": \"Yes, internships do qualify as experience when evaluating your degrees under AACRAO EDGE standards.\"}\n", "\n", "######\n", - "{\"_question\": \"I have two US bachelor's degrees - a 3-year bachelor degree in science and a 2-year bachelor's degree in engineering - and am thinking of submitting an EB-2 visa application. In the event that I don't qualify for the EB-2, I've worked for about four years in my current job. Should I wait a further year and then apply for the EB-2 or should I just file for the EB-3 visa now?\",\n", - "\"_answer\": \"Internships are factored in when counting the number of years of work after school. You must have your degrees assessed under AACRAO Edge standards first.\"}\n", + "{\"_question\": \"What is the AACRAO EDGE standard with regards to internships?\", \n", + "\"_answer\": \"AACRAO EDGE standards take into account internships when evaluating your degrees.\"}\n", "\n", "######\n", - "{\"_question\": \"I have two US bachelor's degrees - a 3-year bachelor degree in science and a 2-year bachelor's degree in engineering - and am considering applying for an EB-2 visa. If I don't qualify for the EB-2, I have been at my current job for about four years. Should I wait another year before applying for the EB-2 or should I just file for the EB-3 visa now?\",\n", - "\"_answer\": \"Internships are taken into account when calculating the number of years of work after school. You should get your degrees evaluated under AACRAO Edge standards first.\"} \n", + "{\"_question\": \"Do internships count when evaluating degrees under AACRAO EDGE standards?\", \n", + "\"_answer\": \"Yes, internships are taken into consideration when evaluating your degrees under AACRAO EDGE standards.\"} \n", "\n", "\n", "\n", @@ -2600,16 +2750,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"How long do I have to wait to begin the green card process? Do I have the choice of selecting either EB-1 or EB-2? I don't have a bachelor's or master's degree - will that be a problem for applying for a green card? Should I only apply through my employer or can I do it myself?\",\n", - "\"_answer\": \"You can start the green card process without any delay. Yes, you can choose between EB-1 and EB-2. Not having a degree is not a barrier for international managers/executives. Your employer must apply for the green card on your behalf.\"}\n", + "{\"_question\": \"How soon can I start the green card process? Do I have a choice between EB-1 and EB-2? Do I need a degree to apply for the green card? Is it necessary for my employer to apply for me?\",\n", + "\"_answer\": \"You can begin the green card process right away. Yes, you have the option of selecting between EB-1 and EB-2. No, a degree is not necessary. Your employer needs to apply for you.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the timeframe to start the green card process? Is it possible to pick between EB-1 or EB-2? If I don't have a bachelor's or master's degree, will that be an issue for applying for a green card? Must I only go through my employer or can I do it by myself?\",\n", - "\"_answer\": \"You can start the green card process immediately. Yes, you can choose between EB-1 and EB-2. Not having a degree is not a problem for international managers/executives. Your employer needs to submit the green card application on your behalf.\"}\n", + "{\"_question\": \"What is the timeline for starting the green card process? Can I choose between EB-1 and EB-2? Is a degree required for applying for the green card? Do I need my employer to file for me?\",\n", + "\"_answer\": \"You can apply for green card without any wait. Yes, but eb-1 is a gazillion times faster for indian-born people. Degree is not a requirement for international managers/execs. Your employer needs to apply.\"}\n", "\n", "######\n", - "{\"_question\": \"How long should I wait to initiate the green card process? Can I select either EB-1 or EB-2? Do I need a bachelor's or master's degree to apply for a green card? Should I only apply through my employer or can I do it myself?\",\n", - "\"_answer\": \"You can begin the green card process without any wait. Yes, you can choose between EB-1 and EB-2. Not having a degree is not a hindrance for international managers/execs. Your employer must apply for the green card on your behalf.\"} \n", + "{\"_question\": \"When can I start the green card process? Is there an option to select between EB-1 and EB-2? Do I need a degree to be eligible for the green card? Should my employer file for me?\",\n", + "\"_answer\": \"You can begin the green card process right away. Yes, you have the option of selecting between EB-1 and EB-2. No, a degree is not necessary. Your employer needs to apply for you.\"} \n", "\n", "\n", "\n", @@ -2618,16 +2768,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have a 3-year bachelor's degree from India and 16 years of experience in the US. My EB-3 has a PD of 10/2006. Will I be able to qualify for an EB-2 if I pursue an MS degree here (online or executive)? Do I need to demonstrate progressive experience since I obtained my MS?\",\n", - "\"_answer\": \"As long as the master's degree is accredited, you won't need to provide any post-master's experience for EB-2. There might be some difficulty due to the 3+2 pattern of education, but an accredited master's should solve that problem.\"}\n", + "{\"_question\": \"if I obtain an accredited master's degree, would I be able to qualify for the eb-2 visa without needing to demonstrate progressive experience since graduating?\",\n", + "\"_answer\": \"Yes, if the master's degree is accredited, you would not need to demonstrate post-master's experience for the eb-2 visa. There could be some issue about the 3+2 pattern of education, but an accredited master's should resolve that.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3-year bachelor's degree from India and 16 years of experience in the US. My EB-3 has a PD of 10/2006. Will I be able to qualify for an EB-2 if I get a master's degree here (online or executive)? Do I have to demonstrate progressive experience since I got my MS?\",\n", - "\"_answer\": \"If the master's degree is accredited, you won't need to demonstrate post-master's experience for EB-2. There could be an issue with the 3+2 pattern of education, but an accredited master's should resolve that.\"}\n", + "{\"_question\": \"if I complete a master's program that is accredited, can I qualify for the eb-2 visa without having to show progressive experience since I graduated?\",\n", + "\"_answer\": \"Yes, if the master's degree is accredited, you do not need to prove post-master's experience for the eb-2 visa. There may be an issue with the 3+2 pattern of education, but an accredited master's should fix that.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a 3-year bachelor's degree from India and 16 years of experience in the US. My EB-3 has a PD of 10/2006. Am I able to qualify for an EB-2 if I achieve an MS degree here (online or executive)? Do I need to show progressive experience since I earned my MS?\",\n", - "\"_answer\": \"Provided the master's degree is accredited, you don't need to present any post-master's experience for EB-2. There may be some difficulty due to the 3+2 pattern of education, but an accredited master's should address that issue.\"} \n", + "{\"_question\": \"if I get a master's degree from an accredited school, would I be able to qualify for the eb-2 visa without needing to demonstrate progressive experience since getting the degree?\",\n", + "\"_answer\": \"Yes, if the master's degree is accredited, you do not need to present post-master's experience for the eb-2 visa. There could be a problem with the 3+2 pattern of education, but an accredited master's should solve that.\"} \n", "\n", "\n", "\n", @@ -2636,16 +2786,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have a J-1 visa that is valid for four more years and am considering an EB2-NIW application. If my application is not accepted, will I experience issues when travelling on my J-1 visa?\", \n", - "\"_answer\": \"Immigration intent can be a problem for J-1 holders. It is uncertain if you will have a problem, but there is a potential for it.\"}\n", + "{\"_question\": \"Does exhibiting immigrant intent while having a j-1 (for four more years, no hrr) put me at risk? If I don't get an eb-2, can airport officers tell I was denied and that I had immigration intent?\", \n", + "\"_answer\": \"There is a possibility that exhibiting immigrant intent can be a problem for j-1 holders. However, it is not guaranteed that you will have a problem.\"}\n", "\n", "######\n", - "{\"_question\": \"I possess a J-1 visa that is valid for four more years and am considering an EB2-NIW application. If the application is not approved, will I have difficulty when travelling with my J-1 visa?\", \n", - "\"_answer\": \"Showing immigration intent can be a concern for J-1 holders. It is not definite if you will have a problem, but it is possible.\"}\n", + "{\"_question\": \"If I apply for an eb2-niw while I have a j-1 visa (for four more years, no hrr), could this be an issue? If I don't get the eb-2, will airport officers be aware that I was denied and had immigration intent?\", \n", + "\"_answer\": \"There is a chance that having immigration intent while having a j-1 visa could be a problem. It is not definite that you will have an issue, but the possibility does exist.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a J-1 visa that will be valid for four more years and am contemplating an EB2-NIW request. If the application is not successful, will I have trouble when travelling with my J-1 visa?\", \n", - "\"_answer\": \"Demonstrating immigration intent can be a concern for J-1 holders. It is not certain if you will have an issue, but there is a chance for it.\"} \n", + "{\"_question\": \"I have a j-1 visa for four more years, no hrr. I am considering applying for an eb2-niw. If I don't get the eb-2, could this lead to difficulties when I travel with my j-1? Could airport officers tell I was denied and had immigration intent?\", \n", + "\"_answer\": \"Immigration intent could be an issue for j-1 holders. It is not certain that you will have a problem, but the potential does exist.\"} \n", "\n", "\n", "\n", @@ -2654,16 +2804,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I get an EB-2 visa if I'm a veterinary assistant in the United States with a master's degree in veterinary medicine from Bulgaria?\",\n", - "\"_answer\": \"To be eligible for an EB-2 visa, two criteria must be met: 1) Your degree must be equivalent to a US advanced degree (this must be evaluated by a credentials evaluation service); and 2) The job must require an advanced degree or equivalent experience.\"}\n", + "{\"_question\": \"Can I get an EB-2 visa if I have a Master's degree in Veterinary Medicine and work as a Veterinary Assistant in the USA?\",\n", + "\"_answer\": \"In order to qualify for an EB2 visa, you must meet two criteria: 1. Your degree must be equivalent to a US advanced degree (this must be evaluated by a credentials evaluation service under appropriate standards); and 2. The job must require an advanced degree or equivalent experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for an EB-2 visa if I'm a veterinary assistant from Bulgaria with a master's degree in veterinary medicine and I want to work in the US?\",\n", - "\"_answer\": \"In order to obtain an EB-2 visa, two conditions must be fulfilled: 1) Your degree must be equal to a US advanced degree (this must be evaluated by a credential evaluation service); and 2) The job must necessitate a advanced degree or equivalent experience.\"}\n", + "{\"_question\": \"Do I meet the requirements to get an EB-2 visa if I am a Veterinary Assistant in the USA and I have a Master's degree in Veterinary Medicine from Bulgaria?\",\n", + "\"_answer\": \"In order to be eligible for an EB2 visa, you must fulfill two conditions: 1. Your degree must be comparable to a US advanced degree (this must be evaluated by a credentials evaluation service using applicable standards); and 2. The job must necessitate an advanced degree or equivalent experience.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a master's degree in veterinary medicine from Bulgaria and I want to work as a veterinary assistant in the US. Am I eligible for an EB-2 visa?\",\n", - "\"_answer\": \"You may qualify for an EB-2 visa if two prerequisites are met: 1) Your degree must be comparable to a US advanced degree (this must be evaluated by a credentials evaluation service); and 2) The job must require an advanced degree or equivalent experience.\"} \n", + "{\"_question\": \"I have a Master's degree in Veterinary Medicine from Bulgaria and I want to work as a Veterinary Assistant in the USA. Can I get an EB-2 visa?\",\n", + "\"_answer\": \"You can qualify for an EB2 visa only if you meet two conditions: 1. Your degree must be the same as a US advanced degree (this must be evaluated by a credentials evaluation service under proper standards); and 2. The job must require an advanced degree or equivalent experience.\"} \n", "\n", "\n", "\n", @@ -2672,16 +2822,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"How can I reach out to the USCIS Service Centers to inform them that a priority date is current, that an EB case has been upgraded from EB-3 to EB-2, or that dependents have been separated from the principal applicant's petition?\",\n", - "\"_answer\": \"You can send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"}\n", + "{\"_question\": \"What is the best way to reach out to the USCIS Service Centers to inform them that a priority date is current, that an EB case has been upgraded from EB-3 to EB-2, or that dependents have been separated from the principal applicant's petition?\", \n", + "\"_answer\": \"Send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"}\n", "\n", "######\n", - "{\"_question\": \"How can I reach out to the USCIS Service Centers to notify them that the priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\",\n", - "\"_answer\": \"You can email the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Be sure to include the case number and A# of the beneficiary(s). If necessary, attach scans of any notices for the USCIS to review.\"}\n", + "{\"_question\": \"How can I contact the USCIS Service Centers to provide information about a priority date becoming current, an EB case being upgraded from EB-3 to EB-2, or dependents being separated from the principal applicant's petition?\", \n", + "\"_answer\": \"You can send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the best way to contact the USCIS Service Centers to inform them that a priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\",\n", - "\"_answer\": \"The best way to contact them is to send an email to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov. Make sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"} \n", + "{\"_question\": \"What is the process for notifying the USCIS Service Centers that a priority date is current, an EB case has been upgraded from EB-3 to EB-2, or dependents have been separated from the principal applicant's petition?\", \n", + "\"_answer\": \"You can reach out to the Nebraska Service Center at ncscfollowup.nsc@dhs.gov or the Texas Service Center at tsc.ncscfollowup@uscis.dhs.gov via email. Be sure to include the case number and A# of the beneficiary(s). If applicable, attach scans of any notices for the USCIS to reference.\"} \n", "\n", "\n", "\n", @@ -2690,16 +2840,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do individuals petitioned for a green card under the EB-2 classification need to have a degree from an accredited U.S. university?\",\n", - "\"_answer\": \"A degree from an accredited university is required for a beneficiary to be eligible for a green card under the EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirms that the university is a legitimate educational institution, is not enough to show accreditation for green card purposes. To determine a university's accreditation status, please refer to the following website: http://ope.ed.gov/accreditation/. Additionally, you may want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", + "{\"_question\": \"what do I need to know about accreditation when petitioning for a green card under eb-2 classification?\",\n", + "\"_answer\": \"When petitioning for a green card under the eb-2 classification, the beneficiary must possess a degree from an accredited university. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not sufficient to show accreditation for green card purposes. To determine the accreditation status of a university, you can visit the website http://ope.ed.gov/accreditation/ or watch the video “Accreditation of Distance Education for EB-2” and read the transcript at http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", "\n", "######\n", - "{\"_question\": \"Must a beneficiary petitioned for a green card under EB-2 classification have a degree from an accredited U.S. university?\",\n", - "\"_answer\": \"Yes, a beneficiary must have a degree from an accredited university to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirms that the university is a legitimate educational institution, is not sufficient to show accreditation for green card purposes. To verify a university's accreditation status, please refer to the following website: http://ope.ed.gov/accreditation/. Additionally, you may want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", + "{\"_question\": \"what evidence is required to demonstrate accreditation for green card purposes under eb-2 classification?\",\n", + "\"_answer\": \"In order to demonstrate accreditation for green card purposes under eb-2 classification, the beneficiary must possess a degree from an accredited university. SEVIS certification or state board approval are not sufficient to show accreditation. To determine the accreditation status of a university, you can visit the website http://ope.ed.gov/accreditation/ or watch the video “Accreditation of Distance Education for EB-2” and read the transcript at http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"}\n", "\n", "######\n", - "{\"_question\": \"Is it mandatory for a beneficiary petitioned for a green card under EB-2 classification to possess a degree from an accredited U.S. university?\",\n", - "\"_answer\": \"Yes, a beneficiary must have a degree from an accredited university to be eligible for a green card under EB-2 classification. Evidence such as SEVIS certification or state board approval, which confirms that the university is a legitimate educational institution, is not adequate to show accreditation for green card purposes. To check a university's accreditation status, please refer to the following website: http://ope.ed.gov/accreditation/. Additionally, you may want to watch the video 'Accreditation of Distance Education for EB-2' and read the transcript: http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"} \n", + "{\"_question\": \"what is necessary to show accreditation for green card eligibility under eb-2 classification?\",\n", + "\"_answer\": \"In order to be eligible for a green card under the eb-2 classification, the beneficiary must possess a degree from an accredited university. Evidence such as SEVIS certification or state board approval, which confirm that the university is a legitimate educational institution, is not sufficient to show accreditation for green card purposes. To determine the accreditation status of a university, you can visit the website http://ope.ed.gov/accreditation/ or watch the video “Accreditation of Distance Education for EB-2” and read the transcript at http://www.immigration.com/media/eb2-green-card/accreditation-distance-\"} \n", "\n", "\n", "\n", @@ -2708,16 +2858,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Have I been given the final degree certificate after completing a master's degree in one year, even though I finished the conventional 2 year program in a single year?\",\n", - "\"_answer\": \"The evaluators must assess this matter. We have experienced problems with USCIS in similar cases. The evaluation done through the EDGE database should be sufficient to convince USCIS.\"}\n", + "{\"_question\": \"Did I finish my master's degree in one year? I have a master's degree in science and I have been given the final degree certificate by the university. I completed the regular 2 year program in just 1 year. Will USCIS recognize my M.Sc degree?\",\n", + "\"_answer\": \"In this case, the evaluators will have to assess the situation. We have experienced problems with USCIS in similar situations. Evaluation done through the Edge database should be able to convince USCIS.\"}\n", "\n", "######\n", - "{\"_question\": \"I completed a master's degree in science in just one year, although the program is usually two years long. I have been given the final degree certificate by the university. Will USCIS view my M.Sc. degree as incomplete?\",\n", - "\"_answer\": \"This is where the evaluators come in. We have encountered issues with USCIS in these scenarios. The evaluation done through the EDGE database should be enough to persuade USCIS.\"}\n", + "{\"_question\": \"Did I finish my master's program in one year? I have a master's degree in science and I have been given the final degree certificate by the university. I completed the regular 2 year program in just 1 year. Will the USCIS accept my M.Sc degree?\",\n", + "\"_answer\": \"This is where the evaluators come in. We have had difficulties with USCIS in these circumstances. Evaluation done through the Edge database should be able to persuade USCIS.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a master's degree in science and I have been given the final degree certificate by the university, although I finished the conventional 2 year program in a single year. Will USCIS consider my M.Sc. degree incomplete?\",\n", - "\"_answer\": \"This is where the evaluators need to assess the situation. We have had troubles with USCIS in these types of cases. The evaluation done with the EDGE database should be convincing enough for USCIS.\"} \n", + "{\"_question\": \"Did I complete my master's degree in one year? I have a master's degree in science and I have been given the final degree certificate by the university. I completed the regular 2 year program in just 1 year. Will USCIS acknowledge my M.Sc degree?\",\n", + "\"_answer\": \"At this point, the evaluators must intervene. We have had issues with USCIS in these situations. Evaluation done through the Edge database should be able to convince USCIS.\"} \n", "\n", "\n", "\n", @@ -2726,29 +2876,34 @@ "\n", "\n", "######\n", - "{\"_question\": \"What qualifications are needed to qualify for EB-2?\",\n", - "\"_answer\": \"In order to qualify for EB-2, the USCIS requires a U.S. Master's degree or its foreign equivalent. This can include a four-year Bachelor's degree plus two-year Master's degree in the same or related fields, a three-year Bachelor's degree plus three-year Master's degree in the same or related fields, a three-year Bachelor's degree plus one-year postgraduate diploma plus two-year Master's degree in the same or similar field, a three-year Bachelor's degree plus two-year Master's degree and five years' progressive post-Master's degree experience, or a three-year Bachelor's degree plus two-year Master's degree plus one-year postgraduate diploma. Evidence must be provided in the form of an official academic record and letters from current or former employers to demonstrate the required experience.\"}\n", + "{\"_question\": \"What qualifications are necessary for EB-2 status?\",\n", + "\"_answer\": \"In June 2007, USCIS clarified what is considered to be equivalent to a U.S. master's degree for employment-based category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree plus one additional year of education. Therefore, the beneficiary would also need to have five years' progressive experience. If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree, it is possible that this would be considered the equivalent to a U.S. master's degree and there would be no need to establish five years' progressive experience. 5. Three-year bachelor's degree + two-year master's degree (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference (EB-2) category. 6. Three-year bachelor's degree + two-year master's degree (India) + five years' progressive, post-master's degree experience generally, the educational degrees would be determined to be the equivalent of a U.S. bachelor's + one year and the beneficiary would meet the statutory requirement. 7. Three-year bachelor's degree + two-year master's degree + one-year postgraduate diploma (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference category (EB-2). If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree or the two-year master's degree, it is possible that this would be considered the equivalent to a U.S. master's degree, and there would be no need to establish five years' progressive experience. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty. The post-baccalaureate experience should reflect increasing or advancing levels of responsibility and knowledge in the specialty. The profession should be an occupation for which a baccalaureate degree or its foreign equivalent is the minimum requirement for the entry in the field.\"}\n", + "\n", "######\n", - "{\"_question\": \"What type of degree is needed to be eligible for EB-2?\",\n", - "\"_answer\": \"The USCIS requires a U.S. Master's degree or its foreign equivalent to be eligible for EB-2. This may include a four-year Bachelor's degree plus two-year Master's degree in the same or related fields, a three-year Bachelor's degree plus three-year Master's degree in the same or related fields, a three-year Bachelor's degree plus one-year postgraduate diploma plus two-year Master's degree in the same or similar field, a three-year Bachelor's degree plus two-year Master's degree and five years' progressive post-Master's degree experience, or a three-year Bachelor's degree plus two-year Master's degree plus one-year postgraduate diploma. Documentation must be provided in the form of an official academic record and letters from current or former employers to demonstrate the required experience.\"}\n", + "{\"_question\": \"What educational qualifications are needed for EB-2?\",\n", + "\"_answer\": \"In June 2007, USCIS clarified what is considered to be equivalent to a U.S. master's degree for employment-based category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree plus one additional year of education. Therefore, the beneficiary would also need to have five years' progressive experience. If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree, it is possible that this would be considered the equivalent to a U.S. master's degree and there would be no need to establish five years' progressive experience. 5. Three-year bachelor's degree + two-year master's degree (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference (EB-2) category. 6. Three-year bachelor's degree + two-year master's degree (India) + five years' progressive, post-master's degree experience generally, the educational degrees would be determined to be the equivalent of a U.S. bachelor's + one year and the beneficiary would meet the statutory requirement. 7. Three-year bachelor's degree + two-year master's degree + one-year postgraduate diploma (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference category (EB-2). If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree or the two-year master's degree, it is possible that this would be considered the equivalent to a U.S. master's degree, and there would be no need to establish five years' progressive experience. The petition must include documentation, such as an official academic record showing that the alien has a U.S. advanced degree or a foreign equivalent degree, or an official academic record showing that the alien has a U.S. baccalaureate degree or a foreign equivalent degree and letters from current or former employers showing that the alien has at least five years of progressive post-baccalaureate experience in the specialty. The post-baccalaureate experience should reflect increasing or advancing levels of responsibility and knowledge in the specialty. The profession should be an occupation for which a baccalaureate degree or its foreign equivalent is the minimum requirement for the entry in the field.\"}\n", + "\n", "######\n", - "{\"_question\": \"What is the necessary degree to apply for EB-2?\",\n", - "\"_answer\": \"The USCIS requires a U.S. Master's degree or its foreign equivalent to apply for EB-2. This may comprise a four-year Bachelor's degree plus two-year Master's degree in the same or related fields, a three-year Bachelor's degree plus three-year Master's degree in the same or related fields, a three-year Bachelor's degree plus one-year postgraduate diploma plus two-year Master's degree in the same or similar field, a three-year Bachelor's degree plus two-year Master's degree and five years' progressive post-Master's degree experience, or a three-year Bachelor's degree plus two-year Master's degree plus one-year postgraduate diploma. Evidence must be presented in the form of an official academic record and letters from current or former employers to demonstrate the required experience.\"} \n", + "{\"_question\": \"What is the educational criteria for EB-2?\",\n", + "\"_answer\": \"In June 2007, USCIS clarified what is considered to be equivalent to a U.S. master's degree for employment-based category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree plus one additional year of education. Therefore, the beneficiary would also need to have five years' progressive experience. If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree, it is possible that this would be considered the equivalent to a U.S. master's degree and there would be no need to establish five years' progressive experience. 5. Three-year bachelor's degree + two-year master's degree (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference (EB-2) category. 6. Three-year bachelor's degree + two-year master's degree (India) + five years' progressive, post-master's degree experience generally, the educational degrees would be determined to be the equivalent of a U.S. bachelor's + one year and the beneficiary would meet the statutory requirement. 7. Three-year bachelor's degree + two-year master's degree + one-year postgraduate diploma (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference category (EB-2). If the postgraduate diploma is determined to be \n", "\n", "\n", "\n", "28 \n", "\n", "\n", + "\n", "######\n", - "{\"_question\": \"Is it possible to qualify for EB-2 with a diploma, AMIE and M.Tech, if the job requirement is a Bachelor's in Engineering and 5 years of experience? Would there be any issues with the I-140 if the applicant has 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\", \n", - "\"_answer\": \"It's uncertain if the AMIE will be accepted. I remember an AAO decision that said they wouldn't recognize the AMIE, but a more recent decision was less certain. I think it's worth trying for EB-2 with the M.Tech helping the cause. \"}\n", + "{\"_question\": \"Is it possible to qualify for EB-2 if the job requires a Bachelor's degree in engineering and 5 years of experience, but the applicant has a diploma, AMIE, and M.Tech degree and 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\",\n", + "\"_answer\": \"It's uncertain if the AMIE degree will be accepted. I remember a decision from the AAO that said they would not recognize the AMIE, but then a more recent decision was a bit more vague. Still, I think it's worth trying for EB-2 as the M.Tech will help.\"}\n", + "\n", "######\n", - "{\"_question\": \"If the job requires a Bachelor's in Engineering and 5 years of experience, what are the chances of being approved for EB-2 with a diploma, AMIE and M.Tech? Will there be any problems with the I-140 if the individual has 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\", \n", - "\"_answer\": \"The AMIE is questionable. I recall an AAO decision that said they wouldn't accept the AMIE, but a more recent ruling was more uncertain. I believe it is worth attempting EB-2 with the M.Tech helping the cause.\"}\n", + "{\"_question\": \"Can someone fulfill the requirements for EB-2 if the job demands a Bachelor's in engineering and 5 years of experience but they possess a diploma, AMIE, and M.Tech degree with 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\",\n", + "\"_answer\": \"The AMIE qualification is questionable. I recall an AAO decision that said they would not accept AMIE, but then a more recent decision was less clear. Nevertheless, I think attempting EB-2 is worth a try as the M.Tech should be beneficial.\"}\n", + "\n", "######\n", - "{\"_question\": \"Can an applicant qualify for EB-2 with a diploma, AMIE and M.Tech if the job requires a Bachelor's in Engineering and 5 years of experience? Is there any risk of the I-140 being denied if they have 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\", \n", - "\"_answer\": \"The AMIE is uncertain. I remember a AAO decision that said they wouldn't accept the AMIE, but a more recent ruling was less definite. I think it is worth trying for EB-2 with the M.Tech assisting the cause.\"} \n", + "{\"_question\": \"Is it feasible to qualify for EB-2 if the job requires a Bachelor's degree in engineering and 5 years of experience, but the applicant has a diploma, AMIE, and M.Tech degree and 7 years of experience post M.Tech from a previous employer and 5 years from the current employer?\",\n", + "\"_answer\": \"The AMIE degree is debatable. I remember an AAO decision that said they would not recognize the AMIE, but then a more recent decision was more ambiguous. Still, I think it's worth attempting EB-2 as the M.Tech will be useful.\"} \n", "\n", "\n", "\n", @@ -2757,12 +2912,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the qualifications for EB-2? I have a 4 year bachelor's degree from India and 7 years of experience. My company has applied for a green card in EB-3 and my I-140 has already been approved. My priority date is September 2010. My company's name has changed and they are saying that the process needs to be restarted from the PERM, but I can keep my same priority date. I asked lawyers to see if I'm eligible for EB-2 and they said no. My job description says bachelor's degree and 3 or 5 years of experience, so the lawyers are saying no. Their argument is that the USCIS would deny the application, indicating that the job could be done by someone with 3 years of experience. Am I qualified for EB-2?\",\n", - "\"_answer\": \"Take these points into consideration. First, a change in the name of the employer does not necessitate starting the green card process over again. Second, if the sponsoring employer discontinues business operations, the USCIS may take away your priority date. And, third, the job must require 5 years of experience.\"}\n", + "{\"_question\": \"Am I qualified for EB-2 considering I have a 4 year bachelor's degree from India and 7 years experience? My company has applied for GC in EB-3 and my I-140 is approved, with a priority date of September 2010. The company name has changed since then and they are saying the process needs to be restarted from the PERM, but I can keep my same priority date. The lawyers I asked said no, due to my job description stating a bachelor's degree and either 3 or 5 years of experience. Will USCIS deny my application because of this?\",\n", + "\"_answer\": \"Take into consideration the following points: first, a change in the employer's name does not mean the green card process must begin again; second, if the sponsoring employer ceases business operations, USCIS can take away your priority date; and third, the job must necessitate 5 years of experience for eligibility.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB-2? I have an Indian bachelor's degree that took 4 years to complete and 7 years of work experience. My employer has applied for a green card under EB-3 and my I-140 has been approved. My priority date is September 2010. My employer's name has been changed and they say the process must be restarted from the PERM, but I can keep the same priority date. I asked lawyers to determine if I am eligible for EB-2 and they said no. The job description states that a bachelor's degree and 3 or 5 years of experience is required, so the lawyers said no. They argue that USCIS would deny the application because the job can be done by someone with 3 years of experience. Am I eligible for EB-2?\",\n", - "\"_answer\": \"Take the following into account. First, a change in the employer's name does not mean the green card process must be restarted. Second, the USCIS may revoke your priority date if the sponsoring employer ceases operations. Lastly, the job must require 5 years of experience.\"} \n", + "{\"_question\": \"I have a 4 year bachelor's degree from India and 7 years experience. My company applied for GC in EB-3 and my I-140 is approved, with a priority date of September 2010. The company name has since changed and they are saying the process needs to be restarted from the PERM, but I can keep my same priority date. The lawyers I asked said no, due to my job description requiring either 3 or 5 years of experience. Am I qualified for EB-2 and will USCIS deny my application for this reason?\",\n", + "\"_answer\": \"Remember these points: first, a change in the employer's name does not mean the green card process must start again; second, if the sponsoring employer stops business operations, USCIS can take away your priority date; and third, the job must necessitate 5 years of experience for qualification.\"} \n", "\n", "\n", "\n", @@ -2771,30 +2926,26 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I reapply for a green card under the EB-2 category if my labor was initially filed in EB-3 and my priority date is October 2003? I have a Bachelor's degree from India and 8 years of work experience in the US, 5 in India. What is the process for filing a new EB-2?\",\n", - "\"_answer\": \"Individuals with 5+ years of experience after a 4-year degree may be able to start the green card process anew under EB-2 and port their priority date. Essentially, you would need to submit a new PERM and I-140 for an EB-2 level job.\"}\n", + "{\"_question\": \"Would I be able to start the green card process over again under the EB-2 category if I have a Bachelor's degree from India and 8 years of work experience in the US? What is the process if I decide to do this?\",\n", + "\"_answer\": \"If you have more than 5 years of experience after obtaining a 4-year degree, you may be able to restart the green card process under the EB-2 category and port your priority date. This means you would need to go through the PERM and I-140 steps again for an EB-2 level job.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible for me to obtain a green card again using the EB-2 category if I initially applied for an EB-3 and my priority date is October 2003? I have a Bachelor's degree from India and 8 years of experience in the US, 5 in India. What would I need to do to file a new EB-2?\",\n", - "\"_answer\": \"People with more than 5 years of work history after a 4-year degree may be able to restart the green card process under EB-2 and port their priority date. Basically, you would need to submit a new PERM and I-140 for an EB-2 level job.\"} \n", - "\n", + "{\"_question\": \"Can I restart the green card process with an EB-2 category if I have a Bachelor's degree from India and 8 years of work experience in the US? What would the steps be if I decided to do this?\",\n", + "\"_answer\": \"If you have more than 5 years of experience after obtaining a 4-year degree, it may be possible to begin the green card process again with an EB-2 category and port your priority date. This would involve completing the PERM and I-140 again for an EB-2 level job.\"}\n", "\n", + "######\n", + "{\"_question\": \"Is it feasible to restart the green card process under the EB-2 category if I have a Bachelor's degree from India and 8 years of work experience in the US? What would I need to do if I chose to do this?\",\n", + "\"_answer\": \"If you have more than 5 years of experience after getting a 4-year degree, it may be possible to restart the green card process under the EB-2 category and port your priority date. This would include going through the PERM and I-140 again for an EB-2 level job.\"} \n", "\n", - "31 \n", "\n", "\n", + "31 \n", "\n", - "######\n", - "{\"_question\": \"Can you bypass the perm requirement by applying through the EB-2 category?\",\n", - "\"_answer\": \"It is possible to avoid the perm if you are applying for a national interest waiver under the EB-2 category.\"}\n", "\n", - "######\n", - "{\"_question\": \"Is there a way to bypass the perm requirement by filing under EB-2?\",\n", - "\"_answer\": \"It is possible to sidestep the perm if you are eligible for a national interest waiver in the EB-2 category.\"}\n", "\n", - "######\n", - "{\"_question\": \"Is there an alternative to the perm process by filing in the EB-2 category?\",\n", - "\"_answer\": \"You may be able to circumvent the perm if you meet the requirements for a national interest waiver in the EB-2 category.\"} \n", + "######{\"_question\":\"Can you skip the perm requirement when you go through the eb-2 category?\", \"_answer\":\"You can avoid the need for perm if you are eligible for a national interest waiver under the eb-2 category.\"}\n", + "######{\"_question\":\"Is it possible to bypass the perm process when you use the eb-2 category?\", \"_answer\":\"If you are eligible for a national interest waiver under the eb-2 category, you can avoid the need for perm.\"}\n", + "######{\"_question\":\"Can you avoid the perm requirement if you use the eb-2 category?\", \"_answer\":\"You can bypass the perm process if you are eligible for a national interest waiver within the eb-2 category.\"} \n", "\n", "\n", "\n", @@ -2803,16 +2954,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"what is the best approach to take when it comes to an EB-2 application? Is it more likely to be approved or faster to go with the master's equivalency (BS graduate evaluated in university to be master's equivalent) or the 5 years progressive experience?\",\n", - "\"_answer\": \"It is important to have a lawyer who is thorough and can plan for any potential issues that may arise. Make sure the job is accurately described in the application.\"}\n", - "\n", - "######\n", - "{\"_question\": \"what is the most successful way to submit an EB-2 application? Is it more advantageous to go with the master's equivalency (BS graduate evaluated in university to be master's equivalent) or the 5 years progressive experience?\",\n", - "\"_answer\": \"The lawyer's attention to detail is key. Ensure that the job is accurately represented in the application to the best of your ability.\"}\n", + "{\"_question\": \"what are the chances of success for an eb-2 application, taking into account a master's equivalency and 5 years progressive experience?\",\n", + "\"_answer\": \"it all depends on the lawyers. ensure that your legal counsel is thorough and has considered every possible outcome. make sure that the job description is accurate and honest.\"}\n", "\n", "######\n", - "{\"_question\": \"what would be the best way to approach an EB-2 application? Is it more likely to be approved if you go with the master's equivalency (BS graduate evaluated in university to be master's equivalent) or the 5 years progressive experience?\",\n", - "\"_answer\": \"Your lawyer's preparation is critical. Make sure that the job is accurately described in the application to the USCIS.\"} \n", + "{\"_question\": \"which is more likely to be approved faster for an eb-2 application, a master's equivalency or 5 years progressive experience?\",\n", + "\"_answer\": \"the accuracy of the job description and the level of preparation of your lawyers will be the deciding factors. make sure your counsel is very thorough and has covered all contingencies.\"} \n", "\n", "\n", "\n", @@ -2821,16 +2968,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to move from EB-3 to EB-2 with the same employer given my PD is EB-3 from December 2007?\",\n", - "\"_answer\": \"Yes, if the job offered is more than 50% distinct from the job you have been doing with your current employer.\"}\n", - "\n", - "######\n", - "{\"_question\": \"If I have a PD of EB-3 from December 2007 and I have three years of experience with my current employer, can I apply for EB-2 with the same employer?\",\n", - "\"_answer\": \"Yes, it is possible as long as the job you are offered is significantly different from the job you have been doing with the same employer.\"}\n", + "{\"_question\": \"Is it possible to apply for an EB-2 visa with the same employer if I have been working for them for more than 10 years and my prior experience and education from India is equivalent to a US bachelor's degree?\",\n", + "\"_answer\": \"Yes, if the job you are applying for is more than 50% different than the job you were performing with the same employer.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I switch from EB-3 to EB-2 with the same employer if I have a PD of EB-3 from December 2007 and I have been working for the same employer for three years?\",\n", - "\"_answer\": \"Yes, you can apply for the EB-2 position provided the job duties are more than 50% different than what you have been doing for the same employer.\"} \n", + "{\"_question\": \"I have been with the same employer for over a decade and I have a PD of December 2007 for EB-3. I have three years of experience from before joining this employer and three plus two years of education from India which is equivalent to a US bachelor's degree. Could I apply for an EB-2 visa with the same employer using the experience gained from them?\",\n", + "\"_answer\": \"Yes, you can if the role you are applying for is more than 50% different than the job you were doing with the same employer.\"} \n", "\n", "\n", "\n", @@ -2839,12 +2982,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I have the prerequisites for an EB-2 visa or is it too soon to apply for a green card? I'm currently a professor at a major US university and have been for nine months on an H1B. I have a physicianate and a PhD, sixteen years of professional experience in Europe, twenty papers, and one book. Am I qualified for EB-2 or is it too soon to apply for a green card?\",\n", - "\"_answer\": \"You absolutely qualify for EB-2 and you should submit your application as soon as you can. Professors can re-use existing postings if they filepermwithin eighteen months of when the job was offered to them. You should also have your resume evaluated for a concurrent EB1 application.\"}\n", + "{\"_question\": \"Can I be qualified for the EB-2 visa or is it too soon for green card eligibility? I am a professor at a large US university and have been here for nine months on an H1B. I have 16 years of professional experience in Europe, 20 papers, and one book. Am I eligible for EB2 or would it be too early to apply for the green card?\",\n", + "\"_answer\": \"You are eligible for the EB2 visa and you should submit your application as soon as possible. Professors can reuse existing advertisements if they file the PERM within 18 months of when the job was offered. You should also have your resume evaluated for a concurrent EB1 application.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the criteria for an EB-2 visa or is it too soon to submit for a green card? I am currently a professor at a major US university and have been for nine months on an H1B. I have a doctorate and a PhD, sixteen years of professional experience in Europe, twenty papers, and one book. Am I qualified for EB-2 or is it too soon to file for a green card?\",\n", - "\"_answer\": \"You are definitely qualified for EB-2 and you should make your application as soon as possible. Professorial positions can reuse existing postings if they filepermwithin eighteen months of when the job was offered to them. You should also have your resume checked for a concurrent EB1 application.\"} \n", + "{\"_question\": \"Am I qualified for the EB-2 visa or is it too soon to apply for a green card? I'm a professor at a major US university, and I've been here for nine months on an H1B. I have 16 years of professional experience in Europe, 20 papers, and one book. Am I eligible for the EB2 or would it be too early to apply for the green card?\",\n", + "\"_answer\": \"You are eligible for the EB2 visa and you should submit your application as soon as possible. Professors can reuse existing job postings if they file the PERM within 18 months of when the job was offered. Additionally, you should have your resume examined for a concurrent EB1 application.\"} \n", "\n", "\n", "\n", @@ -2853,15 +2996,11 @@ "\n", "\n", "######\n", - "{\"_question\": \"am i eligible for eb-2 ? i finished a three-year bachelor's degree in computer science from india in june 2005. afterwards, i started a master's program in computer applications (m.c.a) in india in august 2005 (3 year program). while still in school, i took a full-time position in a software company in january 2006. i was given my master's degree in computer applications (3 year degree) in 2008, and remained employed with the same company in a full-time role until december 2010 (5 years). after that, i moved to the United States and have been working with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i meet the criteria for eb-2?\",\n", - "\"_answer\": \"you qualify.\"}\n", - "\n", - "######\n", - "{\"_question\": \"am i suitable for eb-2 ? i earned a three-year bachelor of computer science degree from india in june 2005. then i enrolled in a master of computer applications program (m.c.a) in india in august 2005 (3 year program). while still studying, i accepted a full-time job in a software company in january 2006. i was awarded my master of computer applications (3 year degree) in 2008, and worked with the same company in a full-time capacity until december 2010 (5 years). after that, i relocated to the US and am currently employed with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i qualify for eb-2?\",\n", + "{\"_question\": \"am i eligible for eb-2 ? i completed my 3 year bachelor of computer science degree in india in june 2005 and started a master of computer applications program (m.c.a) in india in aug 2005 (3 year program). while in the middle of my master's degree, i began a full time job in a software company in jan 2006 and got my master of computer applications (3 year degree) in 2008. i worked with the same company in a full time position until dec 2010 (5 years). after that, i moved to the US and have been employed at a US-based company for 7 months as a full time employee (total experience 5 years 7 months). do i meet the requirements for eb-2?\",\n", "\"_answer\": \"you qualify.\"}\n", "\n", "######\n", - "{\"_question\": \"am i eligible for eb-2 ? i attained a three-year bachelor of computer science degree from india in june 2005. then i joined a master of computer applications program (m.c.a) in india in august 2005 (3 year program). while still studying, i obtained a full-time job in a software company in january 2006. i was presented with my master of computer applications (3 year degree) in 2008, and stayed with the same company in a full-time job until december 2010 (5 years). after that, i moved to the US and have been working with a US-based company for 7 months as a full-time employee (total experience 5 years 7 months). do i meet the criteria for eb-2?\",\n", + "{\"_question\": \"am i able to apply for eb-2 ? i earned my 3 year bachelor of computer science degree from india in june 2005 and then started a master of computer applications program (m.c.a) in india in aug 2005 (3 year program). while still doing my master's degree, i started a full time job in a software company in jan 2006. i was given my master of computer applications (3 year degree) in 2008, and stayed with the same company in a full time role until dec 2010 (5 years). after that, i moved to the US and have been employed at a US-based company for 7 months as a full time employee (total experience 5 years 7 months). do i satisfy the requirements for eb-2?\",\n", "\"_answer\": \"you qualify.\"} \n", "\n", "\n", @@ -2871,12 +3010,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the odds of me obtaining an EB2 visa with my qualifications? I have a Bachelor's degree from Israel, which I obtained in 2002. At the same time, I started a Master's degree and was working as a QA Engineer for 1.5 years. I stopped my Master's degree and joined the company I am currently working for. After three years, I was relocated to the United States and have been here for four years. My company's legal team believes that I should apply for an EB3 visa. What are my chances of getting an EB2 visa with my qualifications?\", \n", - "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree. Unfinished degrees are not eligible for an EB2 visa.\"}\n", + "{\"_question\": \"What are the odds of me obtaining an EB2 visa with my qualifications? I have a B.Sc. from Israel (06/2002), and from 10/2002 I was working as a QA engineer at the same time I was studying for my M.Sc. I stopped my M.Sc. in the middle and joined the company I am currently working for. After three years, I was relocated to the US. I have been living in the US for four years and am now considering applying for a green card. The law firm my company works with believes I should apply for an EB3 visa. What are my chances of getting an EB2 visa with my B.Sc. from Israel, plus 1.5 years as a QA engineer in Israel, three years of development in Israel, and four years of development in the US?\",\n", + "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree in order to be eligible for an EB2 visa, and incomplete degrees are not accepted.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood that I will receive an EB2 visa? I got my Bachelor's from Israel in 2002 and at the same time I began a Master's program and was employed as a QA Engineer for 1.5 years. I put a halt to my Master's and joined the firm I am currently employed with. After three years, I was relocated to the United States and have been here for four years. My company's legal team believes that I should go for an EB3 visa. What are the chances that I will get an EB2 visa with my qualifications?\", \n", - "\"_answer\": \"Your degree must be comparable to a US Bachelor's degree. Unfinished degrees do not qualify for an EB2 visa.\"} \n", + "{\"_question\": \"What are the prospects of me being granted an EB2 visa with my educational background? I earned my B.Sc. from Israel in 06/2002, and at the same time I was working as a QA engineer and studying for my M.Sc. I abandoned my M.Sc. and joined the company I am still employed with. After three years, I was relocated to the US, and I have been living here for four years. I am now thinking of applying for a green card. The law firm that my company works with thinks I should apply for an EB3 visa. How likely is it that I will be given an EB2 visa with my B.Sc. from Israel, plus 1.5 years of QA engineering in Israel, three years of development in Israel, and four years of development in the US?\",\n", + "\"_answer\": \"Your degree must be equal to a US Bachelor's degree in order to get an EB2 visa, and incomplete degrees are not considered.\"}\n", + "\n", + "######\n", + "{\"_question\": \"What are the chances of me obtaining an EB2 visa given my educational background? I obtained a B.Sc. from Israel in 06/2002, and simultaneously I was working as a QA engineer and studying for my M.Sc. I gave up my M.Sc. and joined the company I am still working with. After three years, I was relocated to the US, and I have been living here for four years. I am now contemplating applying for a green card. The law firm that my company works with believes I should apply for an EB3 visa. What are the odds of me getting an EB2 visa with my B.Sc. from Israel, plus 1.5 years of QA engineering in Israel, three years of development in Israel, and four years of development in the US?\",\n", + "\"_answer\": \"Your degree must be equivalent to a US Bachelor's degree in order to be eligible for an EB2 visa, and incomplete degrees are not accepted.\"} \n", "\n", "\n", "\n", @@ -2885,16 +3028,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"How does my prior experience factor in for EB-2?\", \n", - "\"_answer\": \"You can use the experience with the same employer only if the job you used to perform and the job you will perform after the green card are more than 50% different, but continuous employment is not a requirement.\"}\n", + "{\"_question\": \"Can my past experience be used for an EB-2 qualification?\",\n", + "\"_answer\": \"It is not necessary to have continuous employment, but if the job you had before and the job you will have after the green card are more than 50% different, then the experience can be counted.\"}\n", "\n", "######\n", - "{\"_question\": \"For EB-2, can I count the years of experience prior to rejoining my current employer?\", \n", - "\"_answer\": \"Yes, as long as the job you used to perform and the job you will perform after the green card are more than 50% different, you can use the experience with the same employer even if you have not been continuously employed.\"}\n", + "{\"_question\": \"Am I eligible to use my previous work experience for an EB-2?\",\n", + "\"_answer\": \"Continuous employment is not a requirement, but if the job duties you had prior to and after the green card are more than 50% distinct, then the experience can be considered.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I need to have been continuously employed for my prior experience to count for EB-2?\", \n", - "\"_answer\": \"No, you can still use the experience with the same employer if the job you used to perform and the job you will perform after the green card are more than 50% different.\"} \n", + "{\"_question\": \"Is it possible to use my prior work experience for an EB-2?\",\n", + "\"_answer\": \"No need for continuous employment, but if the job you did before and the job you will do after the green card are more than 50% different, then the experience can be taken into account.\"} \n", "\n", "\n", "\n", @@ -2903,16 +3046,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I keep my priority date if I move to a new company after my I-140 application was approved on August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 visa is in its 8th year expiring on May 12th, 2021?\",\n", - "\"_answer\": \"Yes, you can retain your priority date as long as the original sponsoring employer does not revoke your I-140, go out of business, and the USCIS does not revoke the I-140 for fraud.\"}\n", + "{\"_question\": \"Is it possible to preserve my priority date if I switch to a new company (B) after the I-140 application was approved on August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 is in its 8th year expiring on May 12th, 2021?\",\n", + "\"_answer\": \"Yes, you can retain your priority date as long as the sponsoring employer does not revoke your I-140, go out of business and USCIS does not revoke the I-140 or the I-140 for fraud.\"}\n", "\n", "######\n", - "{\"_question\": \"If I switch jobs after my I-140 approval on August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 visa is in its 8th year expiring on May 12th, 2021, can I preserve my priority date from my current company?\",\n", - "\"_answer\": \"Yes, you may retain your priority date provided that the sponsoring employer does not revoke your I-140, the business does not close, and the USCIS does not revoke the I-140 for fraud.\"}\n", + "{\"_question\": \"If I transition to a different company (B) after my I-140 application was accepted on August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 is in its 8th year ending on May 12th, 2021, can I still keep my priority date from my current company (A)?\",\n", + "\"_answer\": \"Yes, you can maintain your priority date as long as the sponsoring employer does not cancel your I-140, go bankrupt and USCIS does not cancel the I-140 or the I-140 for fraud.\"}\n", "\n", "######\n", - "{\"_question\": \"I have an I-140 approval from August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 visa is in its 8th year expiring on May 12th, 2021. If I switch jobs, can I still keep my priority date from my current company?\",\n", - "\"_answer\": \"Yes, you can maintain your priority date as long as the sponsoring employer does not cancel your I-140, the business does not shut down, and the USCIS does not revoke the I-140 for fraudulent reasons.\"} \n", + "{\"_question\": \"After I-140 approval on August 8th, 2008 with an EB2 priority date of March 7th, 2008 and my H-1 in its 8th year expiring on May 12th, 2021, am I able to keep my priority date if I move to another company (B)?\",\n", + "\"_answer\": \"Yes, you can retain your priority date provided that the sponsoring employer does not revoke your I-140, go out of business and USCIS does not revoke the I-140 or the I-140 for fraud.\"} \n", "\n", "\n", "\n", @@ -2921,16 +3064,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What costs are the employer responsible for with regards to an employment-based green card application in the EB2 category?\",\n", - "\"_answer\": \"The employer is obligated to pay for all expenses related to the PERM process, such as attorney's fees, filing fees, advertising fees, EAD, and advance parole fees.\"}\n", + "{\"_question\": \"What are the costs associated with an employment-based green card application in the EB2 category?\",\n", + "\"_answer\": \"The employer is required by law to pay for all costs related to the PERM process, but not the remainder of the green card application.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it permissible for the employee to cover the costs of the entire green card process, including attorney's fees, filing fees for all stages, advertising fees, EAD, and advance parole fees?\",\n", - "\"_answer\": \"No, the employer is responsible for paying for all costs associated with the PERM process, but not the rest of the green card process.\"}\n", + "{\"_question\": \"What is the responsibility of the employer with regards to expenses related to an EB2 green card application?\",\n", + "\"_answer\": \"The employer is obligated to cover all costs associated with the PERM process, but not the other parts of the green card application.\"}\n", "\n", "######\n", - "{\"_question\": \"What expenses are the employer required to pay for in regards to an employment-based green card application in the EB2 category?\",\n", - "\"_answer\": \"The employer must cover all costs related to the PERM process, such as attorney's fees, filing fees, advertising fees, EAD, and advance parole fees.\"} \n", + "{\"_question\": \"My employer has agreed to make an EB2 green card application, but they want me to cover the expenses. What are the financial obligations of the employer in this situation?\",\n", + "\"_answer\": \"The employer is legally mandated to pay for all expenses related to the PERM process, but not the other stages of the green card application.\"} \n", "\n", "\n", "\n", @@ -2939,12 +3082,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for an EB-2 visa given my educational background and work experience?\",\n", - "\"_answer\": \"Yes, you may qualify for an EB-2 visa with a bachelor's degree plus five years of progressive experience.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB-2 if I have a 3 year Bachelor's degree in Computer Science, 2 year Master's degree in Information Technology, and have been working since January 2000?\",\n", + "\"_answer\": \"Yes, you could qualify for EB-2 with a Bachelor's degree plus 5 years of progressive experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I have the qualifications for an EB-2 visa based on my education and professional history?\",\n", - "\"_answer\": \"You could be eligible for an EB-2 visa with a bachelor's degree and five years of progressive work.\"} \n", + "{\"_question\": \"I have a 3 year Bachelor's degree in Computer Science and a 2 year Master's degree in Information Technology, and I have been employed since January 2000. Am I eligible for EB-2?\",\n", + "\"_answer\": \"Yes, your qualifications would meet the criteria for EB-2 with a Bachelor's degree plus 5 years of progressive experience.\"} \n", "\n", "\n", "\n", @@ -2953,16 +3096,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I include experiences/skills I've acquired while working with the company sponsoring my green card on the job description for the EB-2? Do I have to have already acquired the skills before?\",\n", - "\"_answer\": \"It is possible to use the skills you have acquired after starting your job if the two roles are more than 50% different.\"}\n", - "\n", - "######\n", - "{\"_question\": \"What if I want to use the skills I learned while working with the company sponsoring my green card for the job description of the EB-2? Do I need to have obtained the skills beforehand?\",\n", - "\"_answer\": \"You can utilize the skills you have obtained since beginning your job if the two positions differ by more than 50%.\"}\n", + "{\"_question\": \"Can I include skills I acquired after working for the company sponsoring my green card in the job description for the EB-2? I have been with the company for 2.5 years and some of the requirements for the job were achieved while I was there.\",\n", + "\"_answer\": \"It is permissible to use these after-acquired abilities as long as the job before and the green card job are more than 50% different.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I include the experiences/skills I gained while working with the company sponsoring my green card on the job description for the EB-2? Must I have already acquired the skills before?\",\n", - "\"_answer\": \"It is possible to use the skills you have acquired after beginning your job if the two roles differ by more than 50%.\"} \n", + "{\"_question\": \"If I've been with the company sponsoring my green card for the past 2.5 years and some of the requirements of the job I'm applying for were acquired while I was there, can I include them in the job description for the EB-2?\",\n", + "\"_answer\": \"You may list these newly acquired skills as long as the job prior and the green card job are more than 50% dissimilar.\"} \n", "\n", "\n", "\n", @@ -2971,16 +3110,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for a green card while on OPT status? I recently graduated with my master's degree and have been working at my current company for two months. Is it necessary for me to wait until I receive my H1B before I can file a green card application, or can I file now? I have two years of IT experience in India.\",\n", - "\"_answer\": \"This is something that needs to be evaluated by your lawyer. Generally, you can submit a PERM application while on OPT, and an EB2 is a possibility.\"}\n", + "{\"_question\": \"Am I eligible to commence the green card process with my current employer while I am on OPT status? Can I apply for EB2? I have two years of IT experience in India. If not, do I have to wait for H1B? Does the green card process depend on H1B?\",\n", + "\"_answer\": \"This inquiry necessitates your attorneys to evaluate the case. Generally, nothing hinders you from filing a PERM application while on OPT and an EB2 appears feasible.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible to apply for a green card with my current employer while I'm in OPT status? I finished my master's degree last summer and have been employed for two months. Do I need to wait until I get my H1B to start the green card process, or can I file now? I have two years of IT experience in India.\",\n", - "\"_answer\": \"This is something that your lawyer would need to assess. Generally speaking, you can submit a PERM application while on OPT and an EB2 is likely a possibility.\"}\n", + "{\"_question\": \"Can I begin the green card process with my present employer while I am in OPT status? Is it possible to file for EB2? I have two years of IT background in India. If not, do I have to wait until I get H1B? Is the green card process dependent on H1B?\",\n", + "\"_answer\": \"This query requires your lawyers to assess the case. In general, nothing stops you from submitting a PERM application while on OPT and an EB2 appears possible.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I file for a green card while I'm on OPT status? I recently graduated with my master's degree and have been with my current employer for two months. Is it necessary for me to wait until I receive my H1B before I can submit a green card application, or can I file now? I have two years of IT experience in India.\",\n", - "\"_answer\": \"This requires your lawyer to evaluate the case. Generally, you can put in a PERM application while on OPT and an EB2 is likely an option.\"} \n", + "{\"_question\": \"Am I qualified to initiate the green card process with my current employer while I am on OPT status? Can I apply for EB2? I have two years of IT experience in India. If not, do I have to wait for H1B? Is the green card process contingent on H1B?\",\n", + "\"_answer\": \"This inquiry necessitates your attorneys to examine the case. Generally, nothing obstructs you from filing a PERM application while on OPT and an EB2 appears viable.\"} \n", "\n", "\n", "\n", @@ -2989,16 +3128,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I change my green card category from EB3 to EB2?\",\n", - "\"_answer\": \"Yes, it is possible to switch your green card category from EB3 to EB2, however the process must start again from PERM.\"}\n", + "{\"_question\": \"Can I switch from EB3 to EB2 category?\",\n", + "\"_answer\": \"Yes, it is possible to transfer your green card status from EB3 to EB2, however, the process must be restarted from the beginning.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to switch my EB3 green card to EB2?\",\n", - "\"_answer\": \"Yes, it is achievable to alter your EB3 green card to EB2, but the process has to be initiated again from PERM.\"}\n", + "{\"_question\": \"Is there a way to move from EB3 to EB2?\",\n", + "\"_answer\": \"Yes, it is achievable to change your green card status from EB3 to EB2, however, the application must be restarted from the start.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it doable to alter my EB3 green card to EB2?\",\n", - "\"_answer\": \"Yes, it is possible to modify your EB3 green card to EB2, however the procedure must commence again from PERM.\"} \n", + "{\"_question\": \"Can I change my category from EB3 to EB2?\",\n", + "\"_answer\": \"Yes, it is possible to alter your green card status from EB3 to EB2, but the procedure must be restarted from perm.\"} \n", "\n", "\n", "\n", @@ -3007,16 +3146,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"is it possible to submit an application for green card under eb-2 category? i have a bsc degree from india and a 2 year diploma from niit (in h1 and l1 they treated my diploma as a master's degree). i also have 10 years of experience. can i submit a green card application under eb-2 category?\", \n", - "\"_answer\": \"it is difficult to tell with a diploma. i don't think eb-2 is likely.\"}\n", + "{\"_question\": \"is it possible to apply for a green card in the eb-2 category? i have a BSc from India and a two year diploma from NIIT, which is considered a master's degree in H1 and L1. I have ten years of experience. Can I apply for a green card in the eb-2 category?\",\n", + "\"_answer\": \"It's hard to say, diplomas can be tricky. It's unlikely you'll be able to get a green card in the eb-2 category.\"}\n", "\n", "######\n", - "{\"_question\": \"am i able to apply for a green card in the eb-2 category? i have a bsc from india and a 2 year diploma from niit (in h1 and l1 they counted my diploma as a master's degree). i have 10 years of experience. am i able to apply for a green card in the eb-2 category?\", \n", - "\"_answer\": \"it is hard to say with a diploma. i don't think eb-2 is viable.\"}\n", + "{\"_question\": \"Do I qualify for a green card in the eb-2 category? I have a Bachelor's from India and a two year diploma from NIIT, which is considered a master's degree in H1 and L1. I have ten years of experience. Am I able to get a green card in the eb-2 category?\",\n", + "\"_answer\": \"It's unpredictable with diplomas. It doesn't seem likely that you can get a green card in the eb-2 category.\"}\n", "\n", "######\n", - "{\"_question\": \"am i qualified to apply for a green card in eb-2 category? i possess a bsc from india and a 2 year diploma from niit (in h1 and l1 they considered my diploma as a master degree). i also have 10 years of experience. am i eligible to apply for a green card in eb-2 category?\", \n", - "\"_answer\": \"it is hard to predict with a diploma. i don't think eb-2 is feasible.\"} \n", + "{\"_question\": \"Can I get a green card in the eb-2 category? I have a Bachelor's from India and a two year diploma from NIIT, which is considered a master's degree in H1 and L1. I have ten years of experience. Is it possible to apply for a green card in the eb-2 category?\",\n", + "\"_answer\": \"It's hard to tell with diplomas. It's unlikely you'll be able to get a green card in the eb-2 category.\"} \n", "\n", "\n", "\n", @@ -3025,15 +3164,15 @@ "\n", "\n", "######\n", - "{\"_question\":\"Can I be eligible for EB2? I have a Bachelor's degree in Computer Science from India and 7.5 years of experience in the same field. Am I eligible to apply for a Green Card in the EB2 category?\",\n", - "\"_answer\": \"It looks like you meet the requirements for EB-2.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor of Engineering (4 years) in Computer Science from India and 7.5 years of experience in the relevant field. Can I apply for a Green Card in the EB2 category?\",\n", + "\"_answer\": \"It looks like you are qualified for EB-2.\"}\n", "\n", "######\n", - "{\"_question\":\"Do I qualify for EB2? I possess a Bachelor's degree in Computer Science from India and 7.5 years of experience in the related field. Am I allowed to apply for a Green Card in the EB2 category?\",\n", - "\"_answer\": \"It appears you are eligible for EB-2.\"}\n", + "{\"_question\": \"Am I qualified to apply for EB2? I possess a Bachelor of Engineering (4 years) in Computer Science from India and have 7.5 years of experience in the related field. Can I submit an application for a Green Card in the EB2 group?\",\n", + "\"_answer\": \"It appears that you are eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\":\"Do I meet the criteria for EB2? I have a Bachelor's degree in Computer Science from India and 7.5 years of experience in the same field. Can I submit an application for a Green Card in the EB2 category?\",\n", + "{\"_question\": \"Do I qualify to apply for EB2? I hold a Bachelor of Engineering (4 years) in Computer Science from India and have 7.5 years of experience in the related area. Am I able to apply for a Green Card in the EB2 category?\",\n", "\"_answer\": \"You seem to be qualified for EB-2.\"} \n", "\n", "\n", @@ -3043,16 +3182,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for the EB-2 category? I am currently employed as a Mechanical Engineer at one of the largest companies and I am transitioning to a Product Development Engineer role within the same company. The job requirements are a Bachelor's degree plus 2-5 years of experience. I have a Bachelor's degree of 4 years, a Master's degree from the US, 1 year and 4 months of research assistant experience, 10 months of teaching assistant experience, and 3 years and 7 months of experience as a Mechanical Engineer. \",\n", - "\"_answer\": \"You meet the minimum requirements for the job which is 2 years of experience, so you are eligible for the EB-2 category.\"}\n", + "{\"_question\": \"Am I eligible for the EB-2 category? I am currently employed as a mechanical engineer for a large company and am transitioning to a product development engineer role within the same company. The job requires a BS degree plus two to five years of experience. I have a bachelor's degree that took four years to complete, a master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a mechanical engineer. Is this sufficient to qualify for the EB-2 category?\",\n", + "\"_answer\": \"The minimum requirements for the job are two years of experience, so you do not qualify for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for the EB-2 category? I have been working as a Mechanical Engineer at one of the biggest companies and am now transitioning to a Product Development Engineer role with the same company. The job requirements are a Bachelor's degree and 2-5 years of experience. My educational background includes a Bachelor's degree of 4 years, a Master's degree from the US, 1 year and 4 months of research assistant experience, 10 months of teaching assistant experience, and 3 years and 7 months of experience as a Mechanical Engineer. \",\n", - "\"_answer\": \"You fulfill the minimum requirements for the job which is 2 years of experience, so you are eligible for the EB-2 category.\"}\n", + "{\"_question\": \"Do I meet the criteria for the EB-2 category? I'm currently employed as a mechanical engineer at a large company and am transitioning to a product development engineer role within the same company. The job requires a Bachelor's degree plus two to five years of experience. I have a Bachelor's degree that took four years to complete, a Master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a mechanical engineer. Am I eligible for the EB-2 category?\",\n", + "\"_answer\": \"The job has a minimum requirement of two years of experience, so you do not qualify for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for the EB-2 category? I have been employed as a Mechanical Engineer at one of the largest companies and am now transitioning to a Product Development Engineer role in the same company. The job requires a Bachelor's degree and 2-5 years of experience. My educational background includes a Bachelor's degree of 4 years, a Master's degree from the US, 1 year and 4 months of research assistant experience, 10 months of teaching assistant experience, and 3 years and 7 months of experience as a Mechanical Engineer. \",\n", - "\"_answer\": \"You meet the minimum qualifications for the job which is 2 years of experience, so you are eligible for the EB-2 category.\"} \n", + "{\"_question\": \"Am I qualified for EB-2 category? I am currently employed as a mechanical engineer for a major company and am transitioning to a product development engineer role in the same company. The job requires a BS degree plus two to five years of experience. I have a bachelor's degree that took four years to complete, a master's degree from the US, one year and four months of research assistant experience, ten months of teaching assistant experience, and three years and seven months of experience as a mechanical engineer. Do I meet the criteria for the EB-2 category?\",\n", + "\"_answer\": \"The job has a minimum requirement of two years of experience, so you are not eligible for EB-2.\"} \n", "\n", "\n", "\n", @@ -3061,16 +3200,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB-2 visa with a bachelor's degree in computer science and a master's degree in computer science from India?\",\n", - "\"_answer\": \"It is a possibility, however your legal representative must evaluate which approach is the best for you: appraise the two degrees to be equal to a bachelor's and use the bachelor's plus 5 years of experience for EB-2 or just use the master's degree (risky).\"}\n", + "{\"_question\": \"Can I apply for an EB-2 visa if I have a 3-year bachelor's degree in computer science and a 2-year master's degree in computer science from India?\",\n", + "\"_answer\": \"It is a possibility, however your lawyer must decide which option is best for you: assess the two qualifications to be equal to a bachelor's degree and use a bachelor's degree plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a 3 year bachelor's degree in computer science and a 2 year master's degree in computer science from India, is it feasible to apply for an EB-2 visa?\",\n", - "\"_answer\": \"It is possible, but your lawyer must assess which course is the ideal one for you: assess the two degrees to be equivalent to a bachelor's and use the bachelor's plus 5 years of experience for EB-2 or just use the master's degree (risky).\"}\n", + "{\"_question\": \"I have a 3-year bachelor's degree in computer science and a 2-year master's degree in computer science from India. Is it possible to apply for an EB-2 visa?\",\n", + "\"_answer\": \"It is possible, but your attorney must determine which path is best for you: evaluate the two degrees to be equivalent to a bachelor's degree and use a bachelor's degree plus 5 years for EB-2 or just use the master's degree (risky).\"}\n", "\n", "######\n", - "{\"_question\": \"If I have a 3 year bachelor's degree in computer science and a 2 year master's degree in computer science from India, can I apply for an EB-2 visa?\",\n", - "\"_answer\": \"It is a possibility, however your legal representative must determine which route is the best for you: evaluate the two degrees to be equal to a bachelor's and use the bachelor's plus 5 years of experience for EB-2 or just use the master's degree (risky).\"} \n", + "{\"_question\": \"I have a 3-year bachelor's degree in computer science and a 2-year master's degree in computer science from India. What are my options for an EB-2 visa?\",\n", + "\"_answer\": \"Your lawyer must decide which route is best for you: assess the two qualifications to be equal to a bachelor's degree and use a bachelor's degree plus 5 years for EB-2 or just use the master's degree (risky).\"} \n", "\n", "\n", "\n", @@ -3079,16 +3218,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I fulfill the requirements for EB-2 eligibility with a four-year degree in civil engineering and 13 years of documented progressive experience in the IT industry?\",\n", - "\"_answer\": \"Yes, you can qualify for EB2\"}\n", + "{\"_question\": \"Am I eligible for EB-2? I have a 4-year bachelor's degree in civil engineering and have documented experience in the IT industry for the past 13 years with progressive experience. Can I qualify for EB2 or EB3?\",\n", + "\"_answer\": \"It is possible to qualify for EB2\"}\n", "\n", "######\n", - "{\"_question\": \"Does my educational background and professional experience meet the criteria for EB2 status?\",\n", - "\"_answer\": \"Yes, you meet the requirements for EB2\"}\n", + "{\"_question\": \"Do I meet the requirements for EB-2? I have a Bachelor's Degree in Civil Engineering and I have been working in the IT field for 13 years with a record of progressive experience. Can I be eligible for EB2 or EB3?\",\n", + "\"_answer\": \"You could be eligible for EB2\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2 based on my four-year degree in civil engineering and 13 years of documented progress in IT?\",\n", - "\"_answer\": \"Yes, EB2 is possible\"} \n", + "{\"_question\": \"Do I fit the criteria for EB-2? I have a Bachelor of Civil Engineering and have spent the last 13 years in the IT industry with a history of progressive experience. Could I qualify for EB2 or EB3?\",\n", + "\"_answer\": \"It is possible to qualify for EB2\"} \n", "\n", "\n", "\n", @@ -3097,34 +3236,31 @@ "\n", "\n", "######\n", - "{\"_question\": \"What kind of degree do I need for USCIS to accept my credentials? I have a two year B.Com from my home country, a Chartered Accountant certification, and ten years of accounting experience. My firm's lawyers refused to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even from the same university) who filed EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA in Accounting and Finance based on my B.Com and CA.\", \n", - "\"_answer\": \"Your lawyers are correct that a CA is not accepted as education by USCIS. Speak with a credentials evaluation agency about master's degrees.\"}\n", + "{\"_question\": \"What about accredited degrees? I have a two-year Bachelor of Commerce degree from my home country and a Chartered Accountant (CA) qualification. I have 10 years of accounting experience plus a Certified Public Accountant (CPA). My firm's lawyers refused to file for an EB-2 visa and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed for an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a Bachelor of Business Administration (Accounting and Finance) based on my B.Com and CA. But the lawyers insisted that for the green card process, USCIS will not consider the CA.\",\n", + "\"_answer\": \"Your lawyers are right that the CA is not accepted as education by USCIS. Consult a credentials evaluation agency about potential master's degrees.\"}\n", "\n", "######\n", - "{\"_question\": \"What qualifications do I need for USCIS to approve my credentials? I have a two year B.Com from my homeland, a Chartered Accountant certification, and ten years of accounting experience. My firm's lawyers declined to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even from the same university) who filed EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA in Accounting and Finance based on my B.Com and CA.\", \n", - "\"_answer\": \"Your lawyers are correct that a CA is not accepted as education by USCIS. Consult with a credentials evaluation agency about master's degrees.\"}\n", + "{\"_question\": \"What about accredited degrees? I possess a two-year Bachelor of Commerce from my home country and a Chartered Accountant (CA) certification. I have 10 years of accounting experience and a Certified Public Accountant (CPA). My firm's lawyers refused to file for an EB-2 visa and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed for an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a Bachelor of Business Administration (Accounting and Finance) based on my B.Com and CA. However, the lawyers asserted that for the green card process, USCIS will not consider the CA.\",\n", + "\"_answer\": \"Your lawyers are accurate that the CA is not accepted as education by USCIS. Speak to a credentials evaluation agency about potential master's degrees.\"}\n", "\n", "######\n", - "{\"_question\": \"What type of credentials do I need for USCIS to accept? I have a two year B.Com from my home country, a Chartered Accountant certification, and ten years of accounting experience. My firm's lawyers refused to file an EB-2 and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even from the same university) who filed EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a BBA in Accounting and Finance based on my B.Com and CA.\", \n", - "\"_answer\": \"Your lawyers are correct that a CA is not accepted as education by USCIS. Speak to a credentials evaluation agency about master's degrees.\"} \n", + "{\"_question\": \"What about accredited degrees? I have a two-year Bachelor of Commerce from my home country and a Chartered Accountant (CA) qualification. I have 10 years of accounting experience plus a Certified Public Accountant (CPA). My firm's lawyers refused to file for an EB-2 visa and insisted on an EB-3. I know two people from another accounting firm with the same credentials (even the same university) who filed for an EB-2 and got their green cards. When I got my H1B, I got my foreign credentials evaluated and received equivalence to a Bachelor of Business Administration (Accounting and Finance) based on my B.Com and CA. But the lawyers insisted that for the green card process, USCIS will not consider the CA.\",\n", + "\"_answer\": \"Your lawyers are correct that the CA is not accepted as education by USCIS. Consult a credentials evaluation agency about potential master's degrees.\"} \n", "\n", "\n", "\n", "50 \n", "\n", "\n", - "\n", "######\n", - "{\"_question\": \"Is it possible to move to a new job and file for a green card through the EB-2 category? What potential risks are involved if I stay with my current employer and wait for the EB-3 process to finish, which could take another three years?\", \n", - "\"_answer\": \"It is possible to submit an I-485 when your priority date becomes current (and then receive an EAD). Priority dates are reported in the Visa Bulletin. There should be no problem transferring the priority date if you use the EB-2 category with a new employer. As far as risks, that should be evaluated by your legal advisors.\"}\n", - "\n", + "{\"_question\": \"Can I switch jobs and submit the PERM and I-140 under EB-2? Can I instead file the PERM and I-140 under EB2 with a new employer, rather than EB3 with the current one? How risky is the situation? I can stay with my current employer, but it will take another three years to get my GC under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can submit the I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't see any issues with transferring the priority date if you file an EB-2 through a new employer. As far as the risk is concerned, that should be evaluated by your lawyers.\"}\n", "######\n", - "{\"_question\": \"Can I switch jobs and file the PERM and I-140 under EB-2? Is it risky to stay with my current employer and wait for my green card to be processed through EB-3, which could take three more years?\", \n", - "\"_answer\": \"You can submit the I-485 when your priority date becomes available (and then receive an EAD). Priority dates are reported in the Visa Bulletin. There should be no issue transferring the priority date if you file an EB-2 through a new employer. As far as the risk, that should be discussed with your lawyers.\"}\n", - "\n", + "{\"_question\": \"Is it possible to change jobs and submit the PERM and I-140 under EB-2? Can I instead file the PERM and I-140 under EB2 with a new employer, instead of EB3 with the current one? How dangerous is the situation? I can remain with my current employer, but it will take another three years to get my GC under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can file the I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't observe any problems with transferring the priority date if you file an EB-2 through a new employer. As for the risk, that should be evaluated by your lawyers.\"}\n", "######\n", - "{\"_question\": \"Can I switch jobs and use the EB-2 category to file for a green card? What are the potential risks if I stay with my current employer and wait for the EB-3 process to finish, which could take another three years?\", \n", - "\"_answer\": \"It is possible to file an I-485 when your priority date becomes current (and then get an EAD). Priority dates are reported in the Visa Bulletin. There is no problem carrying the priority date forward if you use the EB-2 category with a new employer. As to the risk, that should be evaluated by your attorneys.\"} \n", + "{\"_question\": \"Am I able to switch jobs and file the PERM and I-140 under EB-2? Can I file the PERM and I-140 under EB2 with a new employer, instead of EB3 with the current one? How hazardous is the situation? I can stay with my current employer, but it will take another three years to get my GC under EB3. My priority date is February 2007.\",\n", + "\"_answer\": \"You can submit the I-485 in the month when your priority date becomes current (and then get EAD). Priority dates are reported in the Visa Bulletin. I don't notice any issues with transferring the priority date if you file an EB-2 through a new employer. As for the risk, that should be evaluated by your lawyers.\"} \n", "\n", "\n", "\n", @@ -3133,16 +3269,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I qualify for EB-2 if I have a Master's in Biomedical Engineering and work as a Senior Consultant in a company that implements EQMS for Biologics, Medical Device and Pharma companies?\",\n", - "\"_answer\": \"It depends on your qualifications and the job requirements. If you leave before the I-140 is approved, you may not receive any benefit from the process. However, if you leave after the I-140 is approved, you will be able to keep your priority date.\"}\n", + "{\"_question\": \"Could I be eligible for an EB-2 visa with my qualifications and experience? If I decide to change employers during the application process, will I have to restart the GC process from the beginning?\",\n", + "\"_answer\": \"It is possible that you may qualify for EB-2 depending on your qualifications and job requirements. If you leave before the I-140 is approved, you will not receive any benefit from the process. However, if you leave after the I-140 is approved, you can transfer your priority date to the new employer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Master's in Biomedical Engineering and I am a Senior Consultant for a firm that creates EQMS for Biologics, Medical Device and Pharma companies. Is it possible for me to get an EB-2 visa?\",\n", - "\"_answer\": \"It depends on your qualifications and the job requirements. If you depart before the I-140 is approved, you may not get anything from the process. But if you leave after the I-140 is approved, you can keep your priority date.\"}\n", + "{\"_question\": \"I have a Master's degree in Biomedical Engineering and I am working as a Senior Consultant in a company that implements EQMS for biologics, medical devices, and pharma companies. Could I get an EB-2 visa with this experience? If I move to a new employer, will I have to restart the Green Card process?\",\n", + "\"_answer\": \"You may be eligible for an EB-2 visa depending on your qualifications and job requirements. If you leave before the I-140 is approved, you will not benefit from the process. However, if you leave after the I-140 is approved, you can transfer your priority date to the new employer.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Master's in Biomedical Engineering and I am a Senior Consultant for a firm that creates EQMS for Biologics, Medical Device and Pharma companies. If I apply for my green card, would it qualify for EB-2?\",\n", - "\"_answer\": \"It is possible for you to qualify for EB-2 depending on your qualifications and the job requirements. If you leave before the I-140 is approved, you may not gain anything from the process. However, if you leave after I-140 approval, you can keep your priority date.\"} \n", + "{\"_question\": \"I have a Master's degree in Biomedical Engineering and I am employed as a Senior Consultant in a company that implements EQMS for biologics, medical devices, and pharma companies. If I apply for a Green Card, will I qualify for an EB-2 visa? If I switch employers during the application process, will I have to start the GC process over?\",\n", + "\"_answer\": \"You may be eligible for an EB-2 visa depending on your qualifications and job requirements. If you decide to leave before the I-140 is approved, you will not gain anything from the process. However, if you leave after the I-140 is approved, you can take your priority date to the new employer.\"} \n", "\n", "\n", "\n", @@ -3151,16 +3287,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I change jobs after I-140 approval? I'm in my fifth year of H1. My employer has filed a PERM under the EB-3 category since I didn't have the five years of experience required (EB-3 has a six year backlog, while EB-2 is current for me). Can I wait for the I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on H1 with a future employer?\",\n", - "\"_answer\": \"Yes, it is possible and common for a second employer (Employer B) to get an H1 extension based on the I-140 approval of the first employer (Employer A). You should speak to a lawyer to get more details.\"}\n", + "{\"_question\": \"Can I switch jobs after my I-140 is approved? I am in the 5th year of my H1 visa. My current employer has filed for my PERM under EB-3 category since I didn't have 5 years experience before (EB-3 has 6 years backlog, but EB-2 queue is current for me). Can I wait for my I-140 approval, get a 3 year extension with my current employer and then change jobs? Will I be able to get 3 more years on H1 with a future employer?\",\n", + "\"_answer\": \"It is possible and common for a new employer to extend your H-1 visa based on the I-140 approval of your previous employer. You should discuss the details with a lawyer.\"}\n", "\n", "######\n", - "{\"_question\": \"What happens if I change jobs after I-140 approval? I'm in my fifth year of H1 and my current employer has filed a PERM under the EB-3 category since I didn't have the five years of experience required (EB-3 has a six year backlog, while EB-2 is current for me). Is it possible to wait for the I-140 approval, get a three year extension with my current employer, and then switch jobs? Will I be able to get three more years on H1 with a future employer?\",\n", - "\"_answer\": \"Yes, it is feasible and common for a different employer (Employer B) to get an H1 extension based on the I-140 approval of the first employer (Employer A). You should consult with a lawyer to get more details.\"}\n", + "{\"_question\": \"Do I have the option to change jobs after my I-140 is approved? I am currently in my 5th year of my H1 visa. My current employer has filed for my PERM under EB-3 category since I didn't have 5 years experience before (EB-3 has 6 years backlog, but EB-2 queue is current for me). Can I wait for the I-140 approval, get a 3 year extension with my current employer and then move on to another job? Will I be able to get 3 more years on H1 with a future employer?\",\n", + "\"_answer\": \"Yes, it is possible and common for a new employer to extend your H-1 visa based on the I-140 approval of your previous employer. You should consult a lawyer to go over the details.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I switch jobs after I-140 approval? I'm in my fifth year of H1 and my current employer has submitted a PERM under the EB-3 category since I didn't have the five years of experience required (EB-3 has a six year backlog, while EB-2 is current for me). Can I wait for the I-140 approval, get a three year extension with my current employer, and then move jobs? Will I be able to get three more years on H1 with a future employer?\",\n", - "\"_answer\": \"Yes, it is doable and common for a different employer (Employer B) to get an H1 extension based on the I-140 approval of the first employer (Employer A). You ought to talk to a lawyer to get more information.\"} \n", + "{\"_question\": \"Is it possible to switch jobs after my I-140 is approved? I'm in the 5th year of my H1 visa. My current employer has filed for my PERM under EB-3 category since I didn't have 5 years experience before (EB-3 has 6 years backlog, but EB-2 queue is current for me). Can I wait for the I-140 approval, get a 3 year extension with my current employer and then transfer to another job? Will I be able to get 3 more years on H1 with a future employer?\",\n", + "\"_answer\": \"Yes, it is possible and common for a new employer to extend your H-1 visa based on the I-140 approval of your previous employer. You should talk to a lawyer about the specifics.\"} \n", "\n", "\n", "\n", @@ -3169,16 +3305,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I need to wait for a promotion before beginning the green card process to qualify for EB-2? Is a Bachelor's degree plus 5 years of experience or a Master's degree plus 2 years experience necessary for a senior level job? Does the job description need to specify a Bachelor's plus 5 years or a Master's plus 2 years, or is either okay?\",\n", - "\"_answer\": \"You should consult with your attorneys to determine when you should file. For EB-2, either a Master's degree or a Bachelor's degree plus 5 years of post-Bachelor experience qualifies you for an EB-2.\"}\n", + "{\"_question\": \"Do I need to wait until I get a promotion before beginning the green card process to qualify for EB-2? Do I need a Bachelor's degree plus five years of post-Bachelor experience or a Master's degree plus two years of experience for a senior level position? Does the job description need to specify either one?\",\n", + "\"_answer\": \"You should consult with your legal advisors to decide when to file. For EB-2, you will need either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience to be eligible.\"}\n", "\n", "######\n", - "{\"_question\": \"Should I delay filing for EB-2 until I get a promotion? Is a Bachelor's degree plus 5 years of experience or a Master's degree plus 2 years experience the requirement for a senior level position? Does the job description need to be explicit about the Bachelor's plus 5 years or the Master's plus 2 years, or is either acceptable?\",\n", - "\"_answer\": \"You should speak to your legal advisers about the timing of filing. For EB-2, either a Master's degree or a Bachelor's degree plus 5 years of post-Bachelor experience qualifies you for an EB-2.\"}\n", + "{\"_question\": \"Should I postpone the green card filing until I get a promotion to qualify for EB-2? Does my background of a Bachelor's degree and two years of experience plus two years of work experience qualify me for a senior level position? Does the job description need to state either a Bachelor's degree plus five years or a Master's degree plus two years?\",\n", + "\"_answer\": \"You should talk to your attorneys about the best timing for filing. For EB-2, you must have either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience to be qualified.\"}\n", "\n", "######\n", - "{\"_question\": \"Should I wait for a promotion before submitting for EB-2? Is a Bachelor's degree with 5 years of experience or a Master's degree with 2 years experience necessary for a senior level job? Does the job description need to specify a Bachelor's plus 5 years or a Master's plus 2 years, or is either okay?\",\n", - "\"_answer\": \"You need to consult with your lawyers to decide when to file. For EB-2, either a Master's degree or a Bachelor's degree plus 5 years of post-Bachelor experience qualifies you for an EB-2.\"} \n", + "{\"_question\": \"Would it be better to wait for a promotion before beginning the green card process to meet the qualifications for EB-2? Is a Bachelor's degree plus five years of post-Bachelor experience or a Master's degree plus two years of experience enough for a senior level position? Does the job description have to specify either one?\",\n", + "\"_answer\": \"You should speak with your lawyers to decide when to file. For EB-2, you must have either a Master's degree or a Bachelor's degree plus five years of post-Bachelor experience to be eligible.\"} \n", "\n", "\n", "\n", @@ -3187,16 +3323,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) and 10 years of experience, with 7.5 years of experience in the required job description.\", \n", - "\"_answer\": \"It depends. If the diploma is post-graduate (not for undergraduates) and accepted, you may be eligible for EB-2.\"}\n", + "{\"_question\": \"Am I qualified for EB2? I have a Bachelor of Business Administration degree (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which are in the necessary job description.\",\n", + "\"_answer\": \"It depends. If the higher diploma is a postgraduate program (not available to undergraduates) and is recognized, you might be eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I got my Bachelor of Business Administration (3 years) and Higher Diploma in Software Engineering (2 years) and have 10 years of experience, including 7.5 years of experience in the required job description.\", \n", - "\"_answer\": \"That depends. If the diploma is post-graduate (not for undergraduates) and accepted, you could be qualified for EB-2.\"}\n", + "{\"_question\": \"Do I meet the qualifications for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, with 7.5 of those in the necessary job description.\",\n", + "\"_answer\": \"It depends. If the higher diploma is a postgraduate course (not available to undergraduates) and it is recognized, you could be eligible for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) and 10 years of experience, with 7.5 years of experience in the required job description.\", \n", - "\"_answer\": \"It depends. If the diploma is post-graduate (not for undergraduates) and approved, you may be eligible for EB-2.\"} \n", + "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor of Business Administration (3 years) and a Higher Diploma in Software Engineering (2 years) plus 10 years of experience, 7.5 of which are related to the job description.\",\n", + "\"_answer\": \"It depends. If the higher diploma is a postgraduate qualification (not available to undergraduates) and it is accepted, you may be eligible for EB-2.\"} \n", "\n", "\n", "\n", @@ -3205,16 +3341,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for a green card under the EB2 category? I have a B.Sc in Computer Science (3 years) and an M.Sc in Computer Science (2 years). I have 9 years of experience as a Tech Architect - Lead (managing 5-20 people) and my M.Sc has been evaluated as equivalent to a US MS for H1 visa approval. Am I eligible?\", \n", - "\"_answer\": \"If your B.Sc and M.Sc are in the same field and relevant to your job, then you should be able to apply for an EB2 green card.\"}\n", + "{\"_question\": \"Can I apply for a green card under the EB2 category? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I have been working as a Technology Architect-Lead (managing 5-20 people) for 9 years. My M.Sc. has been evaluated as equivalent to a US Master's degree for the purpose of an H1 visa. Am I eligible?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are in the same field and are pertinent to your job, the EB-2 should be viable.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB2 green card? I have a B.Sc in Computer Science (3 years) and an M.Sc in Computer Science (2 years). I have 9 years of experience as a Tech Architect - Lead (managing 5-20 people) and my M.Sc has been evaluated as equivalent to a US MS for H1 visa approval. Is this enough?\", \n", - "\"_answer\": \"If you have a B.Sc and M.Sc in the same area and related to your work, then you should be able to get an EB2 green card.\"}\n", + "{\"_question\": \"Am I eligible to apply for a green card under the EB2 category? I possess a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). I am currently employed as a Technology Architect-Lead (overseeing 5-20 people) and have been in this role for 9 years. My M.Sc. has been evaluated as equal to an American Master's degree for the H1 visa. Is this sufficient?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are related to your line of work and in the same field, then the EB-2 should be workable.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I receive an EB2 green card? I have a B.Sc in Computer Science (3 years) and an M.Sc in Computer Science (2 years). I have 9 years of experience as a Tech Architect - Lead (managing 5-20 people) and my M.Sc has been evaluated as equivalent to a US MS for H1 visa approval. Will this work?\", \n", - "\"_answer\": \"If your Bachelor's and Master's degrees are in the same field and related to your occupation, then you should be able to get an EB2 green card.\"} \n", + "{\"_question\": \"What are the requirements to apply for a green card under the EB2 category? I have a B.Sc. in Computer Science (3 years) and an M.Sc. in Computer Science (2 years). For the past 9 years, I have been employed as a Technology Architect-Lead (managing 5-20 people). My M.Sc. has been evaluated as equivalent to a US Master's degree for the purpose of an H1 visa. Do I meet the criteria?\",\n", + "\"_answer\": \"If your Bachelor's and Master's degrees are related to your job and in the same field, then the EB-2 should be viable.\"} \n", "\n", "\n", "\n", @@ -3223,12 +3359,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I move from an EB3 to an EB2 with portability? My EB3 I-485 is pending with a priority date of 06/2006. My employer is willing to file a new EB2 as I have Indian equivalent Masters (3+3 years) and more experience as well as increased job responsibilities. Is it possible to accept the offer and port my priority date? What is the minimum wage for EB2 category? Will my current employer's experience count for the new EB2? Any advice on the EB2 job responsibilities?\",\n", - "\"_answer\": \"In theory, this is possible. As to the practical implications, you should consult with the lawyers who will handle your second green card process.\"}\n", + "{\"_question\": \"Will I be able to switch my EB3 I-485 that has a priority date of 06/2006 to an EB2 with my Indian equivalent Masters degree (3+3 years) and more experience? What is the minimum wage for EB2 category? Will my current company experience count for the new EB2 category? Do you have any suggestions on the job responsibilities for EB2?\",\n", + "\"_answer\": \"In theory, this is a possibility. As for the practical implications, you should consult with the lawyers who will be handling your second green card application.\"}\n", + "\n", + "######\n", + "{\"_question\": \"Is it feasible to transfer my EB3 I-485, which has a PD of 06/2006, to an EB2 with my Indian equivalent Masters (3+3 years) and more experience? What is the minimum wage for EB2 category? Will my current company experience be relevant for the new EB2 category? Could you give me advice on the job responsibilities for EB2?\",\n", + "\"_answer\": \"It is possible in principle. As to the practical aspects, you should speak with the attorneys who will represent you in the second green card process.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I transfer my EB3 to an EB2 with portability? My EB3 I-485 is pending with a priority date of 06/2006. My company is offering to file a new EB2 as I have Indian equivalent Masters (3+3 years) and more experience as well as increased job responsibilities. Is it permissible to accept this and take advantage of portability to use my EB3 priority date? What is the minimum wage for EB2 category? Will my current company experience be applicable for the new EB2? Any advice on the EB2 job responsibilities?\",\n", - "\"_answer\": \"In theory, this is feasible. As to the practical implications, you should speak to the lawyers who will represent you in the second green card process.\"} \n", + "{\"_question\": \"Can I change my EB3 I-485 with PD 06/2006 to an EB2 considering my Indian equivalent Masters (3+3 years) and more experience? What is the minimum wage for EB2 category? Will my current company experience be applicable to the new EB2 category? Do you have any advice on the job responsibilities for EB2?\",\n", + "\"_answer\": \"It is theoretically possible. As for the practical implications, you must consult with the lawyers who will be handling your second green card application.\"} \n", "\n", "\n", "\n", @@ -3237,16 +3377,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the standards for EB2 visa with my qualifications?\",\n", - "\"_answer\": \"Yes, you are eligible for EB2 visa, assuming you have a Master's degree in Electrical Engineering and 3 years of experience, which are the requirements for the job.\"}\n", + "{\"_question\": \"Do I qualify for EB-2 with my Masters in Electrical Engineering and 3 years of experience?\",\n", + "\"_answer\": \"Yes, you meet the criteria for EB-2, unless the job has a lower requirement than a Bachelor's degree plus 5 years of experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB2 visa with my qualifications?\",\n", - "\"_answer\": \"Yes, you satisfy the criteria for EB2 visa, as long as you have a Master's degree in Electrical Engineering and 3 years of experience, which are the prerequisites for the job.\"}\n", + "{\"_question\": \"Does my Master's in Electrical Engineering and 3 years of experience make me eligible for EB-2?\",\n", + "\"_answer\": \"Yes, you fulfill the requirements for EB-2, unless the job has a different standard that is less than a Bachelor's degree and 5 years of experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB2 visa with my qualifications?\",\n", - "\"_answer\": \"Yes, you satisfy the requirements for EB2 visa, given that you have a Master's degree in Electrical Engineering and 3 years of experience, which are the conditions for the job.\"} \n", + "{\"_question\": \"Am I qualified for EB-2 with a Master's in Electrical Engineering and 3 years of experience?\",\n", + "\"_answer\": \"Yes, you satisfy the qualifications for EB-2, unless the job has an alternate requirement that is lower than a Bachelor's degree plus 5 years of experience.\"} \n", "\n", "\n", "\n", @@ -3255,16 +3395,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 if I have a Master of Computer Science from the US and 6 months of prior experience?\",\n", - "\"_answer\": \"It all depends if the job requires a master's degree or not.\"}\n", + "{\"_question\": \"Do I qualify for EB2 if I have a Master's in Computer Science from the US and six months of experience?\",\n", + "\"_answer\": \"It depends on the job requirements, but if a Master's degree is necessary then you should be eligible.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2 if I have a Master in Computer Science from the US with 6 months of experience?\",\n", - "\"_answer\": \"It depends on the job requirements for a master's degree.\"}\n", + "{\"_question\": \"Is a Master's in Computer Science from the US and 6 months of experience enough for EB2?\",\n", + "\"_answer\": \"It is possible, depending on the job's criteria. If the job necessitates a Master's degree then you should be qualified.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the criteria for EB2 with a Master of Computer Science from the US and 6 months of previous work?\",\n", - "\"_answer\": \"That would depend if the job requires a master's degree.\"} \n", + "{\"_question\": \"Can I be eligible for EB2 if I have a Master's in Computer Science from the US and 6 months of experience?\",\n", + "\"_answer\": \"It depends on the job's requirements, but if a Master's is needed then you should be able to qualify.\"} \n", "\n", "\n", "\n", @@ -3273,16 +3413,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Are my chances of obtaining a green card under the EB-2 category high after I complete my PhD and get a job in the industry?\",\n", - "\"_answer\": \"It looks likely that you will be successful in obtaining a green card under the EB-2 category.\"}\n", + "{\"_question\": \"How likely is it that I will be able to get a green card when I finish my PhD program in semiconductor devices at a US university?\",\n", + "\"_answer\": \"Your chances for an EB-2 green card are quite good.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of me getting a green card with the EB-2 category once I have finished my PhD and gotten a job in the industry?\",\n", - "\"_answer\": \"Your prospects of obtaining a green card with the EB-2 category are quite good.\"}\n", + "{\"_question\": \"Given my current situation, what are the prospects of me obtaining a green card after I complete my PhD in semiconductor devices from a US university?\",\n", + "\"_answer\": \"You should have a good chance of getting an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"I have almost completed my PhD in semiconductor devices at a US university and have 5 first author publications. Will I have a good chance of getting a green card under the EB-2 category after I get a job in the industry?\",\n", - "\"_answer\": \"It looks like your chances of obtaining a green card with the EB-2 category are quite favorable.\"} \n", + "{\"_question\": \"What are the odds of me getting a green card after I finish my PhD in semiconductor devices from a US university?\",\n", + "\"_answer\": \"Your prospects for an EB-2 green card are quite favorable.\"} \n", "\n", "\n", "\n", @@ -3291,16 +3431,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible for me to keep my EB3 priority date if I file a new EB2 application?\",\n", - "\"_answer\": \"It is not possible to have two PERM applications from the same company for the same individual. However, if you have a valid, logical, and truthful explanation, nothing in the law states that it is not allowed. You cannot transfer your priority date until your I-140 is approved. I believe you have enough time to switch employers and file for EB2.\"}\n", + "{\"_question\": \"Is it possible to transfer my PD from EB3 to EB2? I filed my PERM under the EB3 category on October 1, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is it possible for me to keep the EB3 file running in parallel and carry the PD from EB3 after the I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest to me if I should change my employer now to file for EB2?\", \n", + "\"_answer\": \"It is not possible to have two PERM applications from the same company for the same individual. However, if you have a valid, logical, and truthful explanation, there is no law that prevents you from having two PERM apps with the same employer for different jobs. You cannot transfer PD until the I-140 is approved. I believe you have enough time to change jobs right away.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I transfer my EB3 priority date to a new EB2 application?\",\n", - "\"_answer\": \"It is not permitted to have two PERM applications from the same employer for the same individual. But if you have a good, logical, and honest explanation, there is no law that says you cannot. Your priority date cannot be transferred until the I-140 is approved. I think you have enough time to change employers and file for EB2.\"}\n", + "{\"_question\": \"Is it feasible to take my PD from EB3 to EB2? I submitted my PERM under the EB3 category on October 1, 2008 and got an audit. According to the existing PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is it possible to keep the EB3 file running in parallel and bring the PD from EB3 after the I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest to me if I should switch my employer now to file for EB2?\", \n", + "\"_answer\": \"It is not possible to have two PERM applications from the same company for the same individual. But if you have a valid, logical, and truthful explanation, there is no law that prohibits you from having two PERM apps with the same employer for different jobs. You cannot move PD until the I-140 is approved. I think you have enough time to switch jobs right away.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to keep my EB3 priority date if I file a new EB2?\",\n", - "\"_answer\": \"Having two PERM applications from the same employer for the same individual is not allowed. But if you have a sound, logical, and truthful explanation, there is nothing in the law that says you cannot. You cannot transfer your priority date until the I-140 is approved. I believe you have enough time to switch employers and submit an EB2 application.\"} \n", + "{\"_question\": \"Is it achievable to move my PD from EB3 to EB2? I filed my PERM under the EB3 category on October 1, 2008 and received an audit. According to the current PERM dates, they are processing audits from August 2008. Can I file with the same employer under EB2? Is it possible to keep the EB3 file running in parallel and transport the PD from EB3 after the I-140 approval if I file a new EB2? I have already completed 4 years and 2 months on H1B. Can you suggest to me if I should change my employer now to file for EB2?\", \n", + "\"_answer\": \"It is not possible to have two PERM applications from the same company for the same individual. But if you have a valid, logical, and truthful explanation, there is no law that forbids you from having two PERM apps with the same employer for different jobs. You cannot transfer PD until the I-140 is approved. I believe you have enough time to change jobs right away.\"} \n", "\n", "\n", "\n", @@ -3308,14 +3448,17 @@ "\n", "\n", "\n", - "######{\"_question\":\"Do I meet the criteria for an EB2 visa based on my qualifications?\", \n", - "\"_answer\":\"It is unlikely that you would qualify for an EB2 visa given your 3-year bachelor's degree, certified software architect status, 15+ years of experience, and salary of over 100k.\"}\n", + "######\n", + "{\"_question\": \"Am I qualified for EB2 green card with a 3-year bachelor's degree, certified software architect, 15+ years of experience (including current employer) and a salary of 100k+?\",\n", + "\"_answer\": \"It is unlikely that you would qualify for EB2 green card, but have your lawyers review.\"}\n", "\n", - "######{\"_question\":\"Do I have a chance of obtaining an EB2 visa with my qualifications?\", \n", - "\"_answer\":\"It is unlikely that you would be able to acquire an EB2 visa given your 3-year bachelor's degree, certified software architect status, 15+ years of experience, and salary of over 100k.\"}\n", + "######\n", + "{\"_question\": \"Do I meet the requirements for an EB2 green card with my 3-year bachelor's degree, software architect certification, 15+ years of experience (including current employer) and salary of 100k+?\",\n", + "\"_answer\": \"Most likely not, however, have your lawyers review.\"}\n", "\n", - "######{\"_question\":\"Am I likely to get an EB2 visa with my qualifications?\", \n", - "\"_answer\":\"It is improbable that you would be able to get an EB2 visa given your 3-year bachelor's degree, certified software architect status, 15+ years of experience, and salary of over 100k.\"} \n", + "######\n", + "{\"_question\": \"Given my 3-year bachelor's degree, certified software architect, 15+ years of experience (including current employer) and 100k+ salary, am I eligible for an EB2 green card?\",\n", + "\"_answer\": \"It is improbable that you would qualify for EB2 green card, but have your lawyers review.\"} \n", "\n", "\n", "\n", @@ -3324,16 +3467,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I file for EB2 Schedule A despite the recent denial of my PERM application and layoff at my company?\", \n", - "\"_answer\": \"If you are eligible, you can submit a Schedule A application. I cannot think of any issues that the PERM denial or layoffs could cause, and there is no need to wait to submit it.\"}\n", + "{\"_question\": \"Can I apply for EB2 Schedule A despite the fact that my PERM application was denied due to recent layoffs in my company?\", \n", + "\"_answer\": \"There is no reason why you cannot submit a Schedule A application if you are qualified and the recent denial or layoff should not cause any issues. You do not need to wait to file.\"}\n", "\n", "######\n", - "{\"_question\": \"Given the recent PERM denial and layoffs in my company, can I still apply for EB2 Schedule A to bypass labor certification?\", \n", - "\"_answer\": \"If you meet the qualifications, you can file for Schedule A. There should be no problems due to the PERM denial or layoffs, and you can submit the application right away.\"}\n", + "{\"_question\": \"Given the fact that my PERM application was denied due to the layoffs in my company, could I still apply for EB2 Schedule A?\", \n", + "\"_answer\": \"If you are eligible, you can submit the Schedule A application without delay, and the denial or layoffs should not create any problems.\"}\n", "\n", "######\n", - "{\"_question\": \"Will the denial of my PERM application and layoffs in my company prevent me from filing for EB2 Schedule A to avoid labor certification?\", \n", - "\"_answer\": \"If you are eligible, you can go ahead and submit a Schedule A application. I can't think of any ways that the PERM denial or layoffs would cause any issues, and there is no need to wait to file it.\"} \n", + "{\"_question\": \"If my PERM application was denied due to my company's layoffs, could I still apply for EB2 Schedule A?\", \n", + "\"_answer\": \"Yes, you can apply for Schedule A if you are qualified, and the denial or layoffs should not be an issue. There is no need to wait before submitting the application.\"} \n", "\n", "\n", "\n", @@ -3342,16 +3485,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I have a Bachelor's degree in Engineering from India and I have been working in IT for more than 13 years, currently as an IT Architect. My employer is ready to begin the Green Card process. Is this enough to qualify for EB2?\",\n", - "\"_answer\": \"It appears that you meet the requirements for EB2, given that your Bachelor's degree is a 4-year degree.\"}\n", + "{\"_question\": \"Do I meet the requirements for an EB2 green card if I have a Bachelor of Technology degree from India and 13 years of experience in IT, currently working as an IT Architect with a company that is willing to process my green card?\",\n", + "\"_answer\": \"If your Bachelor of Technology is a four year degree, it appears that you qualify for an EB2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a Bachelor of Technology from India and 13+ years experience in IT, currently as an IT Architect. My employer is ready to start the Green Card process. Is this enough to be eligible for EB2?\",\n", - "\"_answer\": \"It appears that you are qualified for EB2, assuming that your Bachelor of Technology is a 4-year program.\"}\n", + "{\"_question\": \"Am I qualified for an EB2 green card if I possess a B.Tech in engineering from India, with 13 years of experience in IT and I am an IT Architect with a firm that is ready to process my green card?\",\n", + "\"_answer\": \"It appears that you would be eligible for EB2 if your B.Tech is a four year degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible to apply for EB2? I hold a BTech from India and have over 13 years of IT experience, currently as an IT Architect. My employer is ready to start the Green Card process. Would this be sufficient to qualify for EB2?\",\n", - "\"_answer\": \"It looks like you fulfill the requirements for EB2, given that your BTech is a 4-year degree.\"} \n", + "{\"_question\": \"Do I meet the criteria for an EB2 green card if I have a Bachelor of Technology degree from India, 13 years of experience in IT, and I'm currently an IT Architect with a company that is willing to process my green card?\",\n", + "\"_answer\": \"It looks like you are eligible for an EB2 if your Bachelor of Technology is a four year degree.\"} \n", "\n", "\n", "\n", @@ -3360,16 +3503,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What qualifications do I need to meet to be eligible for an EB-2 visa if I have a Bachelor's Degree in Chemistry and a Master's Degree in Chemistry with two years of experience?\",\n", - "\"_answer\": \"You qualify for an EB-2 visa, however, whether or not a promotion is necessary is up to your lawyer and employer to decide. Any position that requires a Bachelor's or Master's Degree plus five years of progressively responsible experience is eligible for an EB-2 filing.\"}\n", + "{\"_question\": \"Is it possible for me to qualify for EB-2 given my educational background and two years of experience in the US working as a research associate?\",\n", + "\"_answer\": \"Yes, you are eligible for EB-2. Whether or not a promotion is necessary is something that your lawyer and employer will have to determine. Any position that requires a MS or BS and five years of progressively responsible experience can be filed for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"What do I need to have in order to be able to apply for an EB-2 visa if I have a 4 year US Bachelor's Degree in Chemistry, a 2 year Master's Degree in Chemistry, and have been working on an H-1B visa for the same US university for two years?\",\n", - "\"_answer\": \"You are qualified for an EB-2 visa, but whether or not a promotion is necessary is up to your lawyer and employer to decide. Any job that requires a Bachelor's or Master's Degree and five years of progressively responsible experience is suitable for an EB-2 filing.\"}\n", + "{\"_question\": \"Given my educational qualifications and two years of experience in the US working as a research associate, am I eligible for EB-2?\",\n", + "\"_answer\": \"Yes, you meet the criteria for EB-2. Whether or not a promotion is necessary is something that your lawyer and employer will have to decide. Any position that requires a MS or BS and five years of progressively responsible experience can be filed for EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"I have a Bachelor's Degree in Chemistry from a four-year US university and a Master's Degree in Chemistry with two years of experience. I am currently working on an H-1B visa for the same US university as a research associate for two years, and my publications are still pending. What criteria do I need to meet to be eligible for an EB-2 visa?\",\n", - "\"_answer\": \"You are eligible for an EB-2 visa, however, whether or not a promotion is needed is up to your lawyer and employer to determine. Any position that requires a Bachelor's or Master's Degree and five years of progressively responsible experience is suitable for an EB-2 filing.\"} \n", + "{\"_question\": \"Do I qualify for EB-2 with my educational background and two years of experience in the US working as a research associate?\",\n", + "\"_answer\": \"Yes, you are eligible for EB-2. Whether or not a promotion is required is something that your lawyer and employer will have to assess. Any position that requires a MS or BS and five years of progressively responsible experience can be filed for EB-2.\"} \n", "\n", "\n", "\n", @@ -3378,12 +3521,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 status? I studied Computer Science for three years at St. Xavier's Mumbai, then completed my MCA at REC Trichy with three years of experience in the IT industry. My employer is filing my Green Card application. Am I eligible for EB2?\",\n", + "{\"_question\": \"Am I qualified for EB2 category? I obtained a BSc in Computer Science from St. Xavier's Mumbai and an MCA from REC Trichy, and I have 7 years of experience in the IT industry.\",\n", "\"_answer\": \"Yes, you meet the requirements for EB2.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for EB2? I earned my BSc in Computer Science from St. Xavier's Mumbai and then my MCA from REC Trichy. I have 7 years of work experience in the IT industry and my employer is filing my Green Card. Do I meet the criteria for EB2?\",\n", - "\"_answer\": \"Yes, you are eligible for EB2.\"} \n", + "{\"_question\": \"Do I qualify for EB2? I have a 3 year BSc in Computer Science from St Xavier's Mumbai and a 3 year MCA from REC Trichy, and 7 years of work experience in the IT field.\",\n", + "\"_answer\": \"Yes, you are eligible for EB2.\"}\n", + "\n", + "######\n", + "{\"_question\": \"Do I fulfill the requirements for EB2? I completed a BSc in Computer Science from St Xavier's Mumbai over three years and later an MCA from REC Trichy over three years, and I have 7 years of experience in the IT industry.\",\n", + "\"_answer\": \"Yes, you are qualified for EB2.\"} \n", "\n", "\n", "\n", @@ -3392,34 +3539,28 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I satisfy the requirements to apply for a green card under the EB-2 category if I have a 3-year bachelor's degree (BSC) and a 3-year bachelor's degree in technology (BTECH) from India, plus 8 years of experience, and the position requires an MS or BS plus 5 years of experience?\", \n", - "\"_answer\": \"It is generally not allowed to combine two 3-year bachelor's degrees, so it appears unlikely you would qualify for EB-2.\"}\n", + "{\"_question\": \"Do I meet the requirements for an EB-2 visa if I have a BSc and BTech in addition to 8 years of experience?\",\n", + "\"_answer\": \"It's unlikely that you will be able to combine two 3-year bachelor's degrees to qualify for an EB-2 visa.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible to apply for a green card under the EB-2 category, if I possess a BSC and a BTECH from India, both of which are 3-year bachelor's degrees, and I have 8 years of experience, and the job requires an MS or BS plus 5 years of experience?\", \n", - "\"_answer\": \"Combining two 3-year bachelor's degrees is usually not allowed, so it appears that you would not be qualified for EB-2.\"}\n", + "{\"_question\": \"Can I apply for an EB-2 green card if I have a BSc and BTech plus 8 years of experience?\",\n", + "\"_answer\": \"It is not typically possible to blend two 3-year bachelor's degrees, so it is unlikely that you will be eligible for an EB-2 green card.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the criteria to apply for a green card under EB-2, if I have a 3-year BSC and a 3-year BTECH from India, plus 8 years of experience, and the job necessitates an MS or BS plus 5 years of experience?\", \n", - "\"_answer\": \"Combining two 3-year bachelor's degrees is usually not permitted, so it appears unlikely you would be eligible for EB-2.\"} \n", + "{\"_question\": \"Do I meet the criteria for an EB-2 visa if I hold a BSc and BTech in addition to 8 years of experience?\",\n", + "\"_answer\": \"It appears unlikely that you will satisfy the requirements for an EB-2 visa since it is generally not possible to combine two 3-year bachelor's degrees.\"} \n", "\n", "\n", "\n", "67 \n", "\n", "\n", - "\n", - "######\n", - "{\"_question\": \"Do I qualify for EB2 with a 3-year Bachelor's degree from India and a 2-year Master's degree from India, plus 7 years of experience?\",\n", - "\"_answer\": \"It is likely that you can qualify for EB2 if your Bachelor's and Master's degrees are in the same or similar field, as this would be considered a 4-year degree.\"}\n", - "\n", "######\n", - "{\"_question\": \"What are the requirements for EB2 if I have a 3-year Bachelor's degree from India, a 2-year Master's degree from India, and 7 years of experience?\",\n", - "\"_answer\": \"The general rule is that if your Bachelor's and Master's degrees are in the same or similar field, they can be combined to be considered a 4-year degree, which would qualify you for EB2.\"}\n", - "\n", + "{\"_question\": \"Can I qualify for EB2 with a 3-year Bachelor's degree and a 2-year Master's degree from India, if the job I am applying for requires a Bachelor's degree and 6 years of experience?\",\n", + "\"_answer\": \"It is possible to qualify for EB2 under these circumstances, as long as the Bachelor's and Master's degrees are in the same or similar fields. Your lawyer should be able to help you determine if you are eligible.\"}\n", "######\n", - "{\"_question\": \"Can I apply for EB2 if I have a 3-year Bachelor's degree from India, a 2-year Master's degree from India, and 7 years of experience?\",\n", - "\"_answer\": \"It is possible to qualify for EB2 if the Bachelor's and Master's degrees are in the same or similar field, as this would be considered a 4-year degree.\"} \n", + "{\"_question\": \"Do I meet the requirements for EB2 if I have a 3-year Bachelor's degree and a 2-year Master's degree from India, and the job I am applying for requires a Bachelor's degree and 6 years of experience?\",\n", + "\"_answer\": \"It is possible that you could meet the requirements for EB2 with a combination of your Bachelor's and Master's degrees, as long as they are in the same or similar fields. Your lawyer should be able to confirm if you are eligible.\"} \n", "\n", "\n", "\n", @@ -3428,16 +3569,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the timeline for obtaining a green card if I initiate the process now?\",\n", - "\"_answer\": \"It depends on the country of birth and a number of other factors, but generally it could take anywhere from 3-4 years. One big advantage of the process is that you can transfer your priority date to a new employer and get an H-1 extension beyond 6 years.\"}\n", + "{\"_question\": \"What is the timeline for green card processing and EB2 category if I initiate it now? I have a Masters degree from the US and I'm currently working for Company A. I'm almost at the end of my fourth year of H1 and am considering my options.\",\n", + "\"_answer\": \"For people born in countries that have an EB2 backlog, the timeline can range from 3-4 years, or longer, depending on various factors. One of the advantages of reaching the I-140 approved stage is that you can transfer your priority date to the next employer and get an H-1 extension beyond six years.\"}\n", "\n", "######\n", - "{\"_question\": \"How long will it take to get a green card if I start the process now?\",\n", - "\"_answer\": \"The duration can range from 3-4 years, depending on the country of birth and other variables. An advantage of getting to the I-140 approved stage is that you can transfer your priority date to a new employer and get an H-1 extension beyond 6 years.\"}\n", + "{\"_question\": \"What is the estimated duration of green card processing if I start it now and I'm in the EB2 category? I have a Masters degree from the US and I'm currently employed by Company A. I'm going to complete four years on H1 soon and I'm trying to make an informed decision.\",\n", + "\"_answer\": \"For those born in countries with an EB2 backlog, the time frame can range from three to four years, or even longer, depending on certain variables. An advantage of reaching the I-140 approved stage is that you can transfer your priority date to the next employer and get an H-1 extension beyond six years.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the estimated time for obtaining a green card if I begin the process now?\",\n", - "\"_answer\": \"The timeline can vary from 3-4 years, depending on the country of birth and other factors. A benefit of getting to the I-140 approved stage is that you can take your priority date to a different employer and get an H-1 extension beyond 6 years.\"} \n", + "{\"_question\": \"What would be the expected length of green card processing if I started it now and I'm in the EB2 category? I have a Masters degree from the US and I'm currently employed by Company A. I'm nearing the end of my fourth year of H1 and am considering my options.\",\n", + "\"_answer\": \"For those from countries with an EB2 backlog, the duration can vary from three to four years, or even longer, depending on various factors. An advantage of reaching the I-140 approved stage is that you can take your priority date to the next employer and get an H-1 extension beyond six years.\"} \n", "\n", "\n", "\n", @@ -3446,16 +3587,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can my current employer sponsor me for an EB2 visa if they promote me to a clinical specialist position after I complete my 5 years experience with them, even if I have only 1 year and 1/2 experience in a staff/lower position?\",\n", - "\"_answer\": \"It is possible under the current law to use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. Only a competent lawyer can help you assess the chances.\"}\n", + "{\"_question\": \"Can my employer sponsor me for EB2 after they promote me to Clinical Specialist?\",\n", + "\"_answer\": \"It is possible to use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. However, only a competent lawyer can help you assess the chances.\"}\n", "\n", "######\n", - "{\"_question\": \"If my current employer promotes me to a clinical specialist position after I finish 5 years experience with them, can they still sponsor me for an EB2 visa even if I have only 1 year and 1/2 experience in a staff/lower position?\",\n", - "\"_answer\": \"The law currently allows for the use of experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To find out your chances, you should seek the advice of a qualified lawyer.\"}\n", + "{\"_question\": \"If I am promoted to Clinical Specialist, can my employer still sponsor me for EB2?\",\n", + "\"_answer\": \"The law allows for the use of experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To find out if you have a chance, you should consult a competent lawyer.\"}\n", "\n", "######\n", - "{\"_question\": \"If I complete my 5 years experience with my current employer and they promote me to a clinical specialist, can they still sponsor me for an EB2 visa even if I have only 1 year and 1/2 experience in a staff/lower position?\",\n", - "\"_answer\": \"The law states that you can use the experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. To get an accurate assessment of your chances, you should consult a competent lawyer.\"} \n", + "{\"_question\": \"Can my employer sponsor me for EB2 after they promote me to Clinical Specialist?\",\n", + "\"_answer\": \"The law permits the use of experience gained with the same employer if the labor certain job is more than fifty percent different from the earlier positions held with the same employer. A professional lawyer should be consulted to determine your chances.\"} \n", "\n", "\n", "\n", @@ -3464,16 +3605,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for EB2? I have a B.Tech in electronics from 2004 and a combined experience of 6 years (3 in India and 3 in the US). Is 5 years of experience outside the US necessary?\",\n", - "\"_answer\": \"Given that you have a four-year degree and more than five years of experience after that, you should be able to apply for EB2.\"}\n", - "\n", - "######\n", - "{\"_question\": \"Am I eligible for EB2? I have a B.Tech in electronics from 2004 and 6 years of experience (3 in India and 3 in the US). Do I need 5 years of experience outside the US?\",\n", - "\"_answer\": \"With a four-year degree and more than five years of experience after that, you should have a chance to apply for EB2.\"}\n", + "{\"_question\": \"Am I eligible for an EB2 visa? I have a B.Tech in Electronics from India in 2004 and 6 years of experience (3 in India and 3 in the US). Does the experience have to be outside the US?\",\n", + "\"_answer\": \"Given your four-year degree and more than five years of post-grad experience, you should have a good chance at an EB2 visa.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2? I have a B.Tech in electronics from 2004 and 6 years of experience (3 in India and 3 in the US). Is 5 years of experience outside the US a must?\",\n", - "\"_answer\": \"If you have a four-year degree and more than five years of experience after that, you should be able to pursue EB2.\"} \n", + "{\"_question\": \"Can I apply for an EB2 visa? I have a B.Tech in Electronics from India in 2004 and six years of experience (three in India and three in the US). Do I need to have five years of experience outside the US?\",\n", + "\"_answer\": \"With a four-year bach. degree and more than five years of post-bach experience, you should be able to have a shot at an EB2 visa.\"} \n", "\n", "\n", "\n", @@ -3482,16 +3619,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Does volunteer work count as an experience for EB2? I am an OT practitioner in the US and I graduated with a BSOT and had 2 years of OT volunteer work in an adult setting in my home country. Would that count towards the 5 years experience requirement? Additionally, for the first 6 months I was not yet licensed as an OT.\",\n", - "\"_answer\": \"Generally, for EB2, there is no requirement that I am aware of that necessitates paid experience. Volunteer experience may be applicable.\"}\n", + "{\"_question\": \"Does volunteer work count as experience for EB2? I am an OT originally from another country, and I have a BSOT and did volunteer OT work for two years in an adult setting back home. Would that count towards the five years of experience required?\",\n", + "\"_answer\": \"Generally, for EB2, there is no requirement that I am aware of that demands paid experience. It is possible to use volunteer experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Would volunteer work count as an experience for EB2? I am an OT practitioner in the US and obtained my BSOT in my home country. I had 2 years of volunteer OT work in an adult setting. Would this count towards the 5 years experience requirement? Also, I was not yet licensed as an OT for the first 6 months.\",\n", - "\"_answer\": \"Generally, there is no requirement that I know of for EB2 that requires paid experience. Volunteer work could be considered.\"}\n", + "{\"_question\": \"Can volunteer experience be used to fulfill EB2 requirements? I have a BSOT and did volunteer OT work for two years in an adult setting back home, although I am originally from another country. Would that count towards the five years of experience?\",\n", + "\"_answer\": \"Generally, for EB2, no paid experience is required. It is possible to use volunteer experience.\"}\n", "\n", "######\n", - "{\"_question\": \"Would volunteer work be counted as an experience for EB2? I am an OT practitioner in the US and have a BSOT from my home country. I did 2 years of volunteer OT work in an adult setting. Would that be applicable towards the 5 years experience requirement? Additionally, I was not yet licensed as an OT for the first 6 months.\",\n", - "\"_answer\": \"Generally, there is no requirement I am aware of for EB2 that necessitates paid experience. Volunteer work could potentially be used.\"} \n", + "{\"_question\": \"Do volunteer hours count for EB2? I have a BSOT and I am from another country. I did volunteer OT work for two years in an adult setting back home. Will that be taken into consideration for the five years of experience requirement?\",\n", + "\"_answer\": \"Generally, no paid experience is necessary for EB2. Volunteer experience may be taken into account.\"} \n", "\n", "\n", "\n", @@ -3500,12 +3637,12 @@ "\n", "\n", "######\n", - "{\"_question\": \"Am I qualified for the EB2 green card? I have a four-year Bachelor's degree in computer science engineering and I am currently working in the United States as a Subject Matter Expert on an L1B visa. I have also completed two Microsoft certifications and AICPCU certifications. Can I apply for the EB2 green card?\",\n", - "\"_answer\": \"You need to have five years of experience after obtaining your Bachelor's degree in order to be eligible for the EB2 green card. Certifications do not usually have an effect on the application.\"}\n", + "{\"_question\": \"Do I qualify for EB2? I received my Bachelor's in Computer Science Engineering and have been working as an SME in the US on an L1B visa for 4 years. I have also completed two Microsoft certifications and AICPCU certifications. Can I apply for a green card under the EB2 category?\", \n", + "\"_answer\": \"You must have 5 years of experience after your Bachelor's. Certifications typically do not provide an advantage.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the requirements for the EB2 green card? I have a four-year Bachelor's degree in computer science engineering and I am currently employed in the United States as a Subject Matter Expert on an L1B visa. I have also obtained two Microsoft certifications and AICPCU certifications. Can I apply for the EB2 green card?\",\n", - "\"_answer\": \"You must have five years of experience after earning your Bachelor's degree in order to be eligible for the EB2 green card. Generally, certifications do not impact your application.\"} \n", + "{\"_question\": \"Am I eligible for EB2? I have a Bachelor's in Computer Science Engineering and have been in the US on an L1B visa for 4 years working as a SME. I also have two Microsoft certifications and AICPCU certifications. Can I get a green card through the EB2 category?\",\n", + "\"_answer\": \"You need to have 5 years of post-Bachelor's experience. Certifications usually do not help.\"} \n", "\n", "\n", "\n", @@ -3514,16 +3651,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"If one's I-140 is approved, is it necessary to switch to a comparable job to maintain priority date?\",\n", - "\"_answer\": \"No, it is not required to switch to a similar role. The green card process must be restarted, but the priority date can be transferred to any job or category (EB1, EB2, EB3).\"}\n", + "{\"_question\": \"Does an individual with an approved i-140 need to switch to a comparable job to maintain the priority date?\",\n", + "\"_answer\": \"No, the individual does not have to switch to a comparable job. The green card process must be restarted, however the priority date can be carried over to any job and category (eb1, eb2, eb3).\"}\n", "\n", "######\n", - "{\"_question\": \"If an individual has an approved I-140, must they transition into a comparable role to retain their priority date?\",\n", - "\"_answer\": \"No, it is not a requirement to move to a comparable job. The green card process needs to be restarted, but the priority date can be transferred to any job or category (EB1, EB2, EB3).\"}\n", + "{\"_question\": \"If a person has an approved i-140, is it necessary to transition to a similar job to preserve the priority date?\",\n", + "\"_answer\": \"No, it is not necessary to change to a similar job. The green card process must be restarted, but the priority date can be shifted to any job and category (eb1, eb2, eb3).\"}\n", "\n", "######\n", - "{\"_question\": \"If a person has a confirmed I-140, do they have to switch to a similar job to keep their priority date?\",\n", - "\"_answer\": \"No, there is no need to switch to a comparable role. The green card procedure must be restarted, but the priority date can be relocated to any job or category (EB1, EB2, EB3).\"} \n", + "{\"_question\": \"If a person has an approved i-140, do they have to move to a similar job to keep the priority date?\",\n", + "\"_answer\": \"No, they do not need to change to a similar job. The green card process must be restarted, but the priority date can be transferred to any job and category (eb1, eb2, eb3).\"} \n", "\n", "\n", "\n", @@ -3532,16 +3669,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB2 visa if the role I am in requires a Bachelor's degree and five years of experience? Is the concept of 'cross eligibility' applicable to my green card application? If so, how can I make use of it?\", \n", - "\"_answer\": \"Yes, you can apply for an EB2 visa if the job requires a Bachelor's degree and five years of post-Bachelor's experience. Cross chargeability is applicable to your green card application, so you should discuss details with your attorneys.\"}\n", + "{\"_question\": \"Can I switch my Green Card application from EB3 to EB2 if the job I'm in now requires a Bachelor's degree and five years of experience? Is it possible to use cross chargeability with my wife, who is an Indian citizen but was born in Kuwait and is on H4 status?\",\n", + "\"_answer\": \"It is possible to apply for an EB2 if the job requires a Bachelor's degree and five years of experience. Cross chargeability is also available and you should discuss the details with your lawyers.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am in a role requiring a Bachelor's degree and five years of experience, am I eligible to submit an EB2 application? Is cross eligibility applicable to my green card application? How can I take advantage of it?\", \n", - "\"_answer\": \"You are able to apply for an EB2 visa if the job requires a Bachelor's degree and five years of post-Bachelor's experience. Cross chargeability is an option for your green card application, so you should speak with your lawyers about the details.\"}\n", + "{\"_question\": \"Is it possible to transfer my Green Card application from EB3 to EB2 if my current role requires a Bachelor's degree and five years of experience? Can I take advantage of cross chargeability with my wife, who is an Indian citizen born in Kuwait and is currently on H4?\",\n", + "\"_answer\": \"Yes, you can submit an EB2 application if your job requires a Bachelor's degree and five years of experience. Cross chargeability is an option and you should speak to your lawyers about the details.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I meet the qualifications to apply for EB2 if the role I am in requires a Bachelor's degree and five years of experience? Can I use cross eligibility for my green card application? How can I make use of it?\", \n", - "\"_answer\": \"Yes, you qualify for EB2 if the job requires a Bachelor's degree and five years of post-Bachelor's experience. Cross chargeability is possible for your green card application, so you should consult with your attorneys to learn more.\"} \n", + "{\"_question\": \"Can I apply for EB2 if my role requires a Bachelor's degree and five years of experience, and my Green Card application was initially filed under EB3? Is cross chargeability applicable to my Green Card application if my wife is an Indian citizen born in Kuwait and is currently on H4?\",\n", + "\"_answer\": \"Yes, you can apply for EB2 if the job requires a Bachelor's degree and five years of experience. Cross chargeability is available and you should consult your lawyers for more information.\"} \n", "\n", "\n", "\n", @@ -3550,16 +3687,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I be eligible for an EB-2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in the same field from the US?\",\n", - "\"_answer\": \"It is my belief that if your job requires an advanced degree, you can apply for EB-2.\"}\n", + "{\"_question\": \"Is it possible to qualify for an EB2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT from the US?\",\n", + "\"_answer\": \"It is possible to apply for an EB2 visa if you have a job that requires an advanced degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB-2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in the same field from the US?\",\n", - "\"_answer\": \"In my opinion, if your occupation necessitates an advanced degree, you can apply for EB-2.\"}\n", + "{\"_question\": \"Will a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT from the US be sufficient for an EB2 visa?\",\n", + "\"_answer\": \"Yes, it is possible to obtain an EB2 visa if your job requires an advanced degree.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB-2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in the same field from the US?\",\n", - "\"_answer\": \"My understanding is that if your job requires an advanced degree, you can apply for EB-2.\"} \n", + "{\"_question\": \"Can I obtain an EB2 visa with a Bachelor of Science in Occupational Therapy from the Philippines and an advanced degree in OT from the US?\",\n", + "\"_answer\": \"Yes, if your position requires an advanced degree, you can apply for an EB2 visa.\"} \n", "\n", "\n", "\n", @@ -3568,16 +3705,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I appreciate your assistance in helping so many of us. I have a query about the interchangeability of EB2 priority dates. I am an Indian national and my wife is a Russian national, born in Russia. When she applies for my green card, can I use her nation's priority date (as of now) for the green card?\", \n", - "\"_answer\": \"Yes, that is accurate. This is known as 'cross changeability.'\"}\n", + "{\"_question\": \"I'm an Indian citizen and my wife is a Russian citizen, born in Russia. We would like to apply for a green card together and I was wondering if I can use her country's priority date (\"current\" as of today) for the green card?\",\n", + "\"_answer\": \"Yes, that is possible. This is known as 'cross changeability'.\"}\n", "\n", "######\n", - "{\"_question\": \"Your help in guiding many of us is greatly appreciated. I have a question about the possibility of swapping EB2 priority dates. I am from India and my wife is a Russian born in Russia. Can I use her country's priority date (current) for the green card when she applies as my dependent?\", \n", - "\"_answer\": \"Yes, that is correct. This is referred to as 'cross changeability.'\"}\n", + "{\"_question\": \"Can I utilize my wife's Russian priority date for my green card application, even though I am an Indian citizen?\",\n", + "\"_answer\": \"Yes, that is an option. This is referred to as 'cross changeability'.\"}\n", "\n", "######\n", - "{\"_question\": \"Your advice for so many of us is invaluable. I have a question regarding the exchangeability of EB2 priority dates. I am an Indian citizen and my wife is a Russian citizen, born in Russia. When she files for my green card, can I use her country's priority date (as of today) for the green card?\", \n", - "\"_answer\": \"Yes, that is true. This is called 'cross changeability.'\"} \n", + "{\"_question\": \"My wife is a Russian citizen and I am an Indian citizen. Is it possible for me to use her country's priority date for my green card application?\",\n", + "\"_answer\": \"Yes, that is doable. This is called 'cross changeability'.\"} \n", "\n", "\n", "\n", @@ -3586,16 +3723,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB2 visa if the job I was offered only requires a bachelor's degree and one year of experience?\",\n", - "\"_answer\": \"No, you will not be eligible to apply for an EB2 visa unless the job requires a post graduate degree or bachelor's degree with five years of experience at a minimum.\"}\n", + "{\"_question\": \"Can my employer help me with my green card if I have a US-based Master's degree and have been offered a state job that requires a Bachelor's degree and 1 year of experience?\", \n", + "\"_answer\": \"No, you will not be eligible for an EB2 unless the job also legitimately requires a post-graduate degree or Bachelor's degree with five years of experience at a minimum.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the minimum requirement to be eligible for an EB2 visa?\",\n", - "\"_answer\": \"In order to be eligible for an EB2 visa, the job must require a post graduate degree or bachelor's degree with five years of experience at a minimum.\"}\n", + "{\"_question\": \"Will my employer be able to support me in my green card application if I have a Master's degree from the US and I have been offered a job which requires a Bachelor's degree and 1 year of experience?\", \n", + "\"_answer\": \"No, you will not qualify for an EB2 unless the job also legitimately requires a post-graduate degree or Bachelor's degree with five years of experience at a minimum.\"}\n", "\n", "######\n", - "{\"_question\": \"If I was offered a job with only a bachelor's degree and one year of experience, can I still apply for an EB2 visa?\",\n", - "\"_answer\": \"No, you would not be able to qualify for an EB2 visa unless the job requires a post graduate degree or bachelor's degree with five years of experience at a minimum.\"} \n", + "{\"_question\": \"If I have a US-based Master's degree and I have been offered a state job that requires a Bachelor's degree and 1 year of experience, can my employer help me with my green card application?\", \n", + "\"_answer\": \"No, you will not be eligible for an EB2 unless the job also legitimately requires a post-graduate degree or Bachelor's degree with five years of experience at a minimum.\"} \n", "\n", "\n", "\n", @@ -3604,16 +3741,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 with an online masters degree? I have a 5 year bachelors degree from a traditional school in the US, and a 2 year MBA from an accredited (Accrediting Commission of the Distance Education and Training Council (DETC)) university in the US. My employer wants to evaluate my master degree as they are unsure if distance education is recognised.\",\n", - "\"_answer\": \"The most important thing to find out is if the degree is accredited. You should contact the school about this.\"}\n", + "{\"_question\": \"Do I qualify for the EB2 category if I have a five year bachelors degree from a traditional school in the US and a two year MBA through distance education from an accredited university in the US?\",\n", + "\"_answer\": \"The important thing to determine is if the degree is accredited. Consult with the school to find out.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for EB2 with a masters degree earned through distance education? I have a 5 year bachelors degree from a US school, and a 2 year MBA from an accredited (Accrediting Commission of the Distance Education and Training Council (DETC)) university in the US. My employer is questioning if distance education is accepted.\",\n", - "\"_answer\": \"The primary factor is to determine if the degree is accredited. Reach out to the school to find out.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB2 if I have a five year bachelors degree from a US school and a two year MBA through distance education from an accredited university in the US?\",\n", + "\"_answer\": \"The decisive factor is to ascertain if the degree is accredited. Talk to the school to learn more.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB2 with a masters degree earned online? I have a 5 year bachelors degree from a US university, and a 2 year MBA from an accredited (Accrediting Commission of the Distance Education and Training Council (DETC)) university in the US. My employer is unsure if distance education is accepted.\",\n", - "\"_answer\": \"The most important thing is to check if the degree is accredited. You should contact the school to confirm this.\"} \n", + "{\"_question\": \"Am I eligible for the EB2 category if I have a five year bachelors degree from a US college and a two year MBA through distance education from an accredited university in the US?\",\n", + "\"_answer\": \"The critical factor is to determine if the degree is accredited. Reach out to the school to find out.\"} \n", "\n", "\n", "\n", @@ -3622,16 +3759,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"To qualify for EB-2 status with advanced degrees, is having a MS degree from a US university enough or must the job require it?\",\n", - "\"_answer\": \"The job must also necessitate EB-2 level qualifications.\"}\n", + "{\"_question\": \"to qualify for an EB2 visa under the advanced degree category, is it enough to possess a master's degree from an American university, or must the job position require it?\",\n", + "\"_answer\": \"the job position must also authentically necessitate EB2 level qualifications.\"}\n", "\n", "######\n", - "{\"_question\": \"For EB-2 classification based on advanced degrees, is a MS degree from a US college enough or must the job demand it?\",\n", - "\"_answer\": \"The job must also necessitate EB-2 level qualifications.\"}\n", + "{\"_question\": \"for EB2 eligibility under the advanced degree classification, is a master's degree from a US college enough, or must the job position mandate it?\",\n", + "\"_answer\": \"the job must also necessitate EB2 level qualifications in a genuine manner.\"}\n", "\n", "######\n", - "{\"_question\": \"To be eligible for EB-2 using advanced degrees, is a MS degree from an American university sufficient or must the job description state so?\",\n", - "\"_answer\": \"The job must also necessitate EB-2 level qualifications.\"} \n", + "{\"_question\": \"in order to be eligible for EB2 under the advanced degree category, is having a master's degree from a US university enough, or must the job position specify such?\",\n", + "\"_answer\": \"the job must also genuinely call for EB2 level qualifications.\"} \n", "\n", "\n", "\n", @@ -3640,16 +3777,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Are there any potential issues with my education in the I-140 considering that my Permanent Residency is approved under EB2 and I have a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience?\",\n", - "\"_answer\": \"It depends on the specifics, but typically speaking, if you completed the B.Tech in three years due to your diploma, there should be no problem.\"}\n", + "{\"_question\": \"Are there any potential issues with my educational background for my I-140 given that my PERM was approved under EB2 and I have a 3 year diploma, 3 year B.Tech, 1.5 year M.Tech, and 8 years of experience at the time of PERM, and all of my education is from India?\", \n", + "\"_answer\": \"There are some variables, but generally, if the B.Tech is supposed to be a 4-year degree and you got it in three due to your diploma, it should be acceptable.\"}\n", "\n", "######\n", - "{\"_question\": \"My EB2 Permanent Residency is approved and I have a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience. Could my education be an issue on my I-140?\",\n", - "\"_answer\": \"It depends, however usually if you earned the B.Tech in three years due to the diploma, it should not be a problem.\"}\n", + "{\"_question\": \"I have been approved for PERM under EB2 with a 3 year diploma, 3 year B.Tech, 1.5 year M.Tech, and 8 years of experience at the time of PERM, all from India. Could there be any problems with my educational background for my I-140?\", \n", + "\"_answer\": \"There are some factors to consider, but generally, if the B.Tech is supposed to be a 4-year degree and you got it in three because of your diploma, it should be okay.\"}\n", "\n", "######\n", - "{\"_question\": \"My EB2 Permanent Residency is accepted and I have a 3-year diploma, 3-year B.Tech, 1.5-year M.Tech, and 8 years of experience. Am I likely to face any issues with my education on the I-140?\",\n", - "\"_answer\": \"It varies, but typically if you obtained the B.Tech in three years because of the diploma, there should not be a problem.\"} \n", + "{\"_question\": \"Given that my PERM was approved under EB2, and I have a 3 year diploma, 3 year B.Tech, 1.5 year M.Tech, and 8 years of experience at the time of PERM, all from India, could there be any issues with my educational background for my I-140?\", \n", + "\"_answer\": \"There are some variables to consider, but generally, if the B.Tech is meant to be a 4-year degree and you got it in three due to your diploma, it should be fine.\"} \n", "\n", "\n", "\n", @@ -3658,16 +3795,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the typical wait time for getting a green card through the EB2 category? I have a master's degree in international business and 7 years of experience in the United States and Europe. I have a job offer in the US and I want to submit the application.\",\n", - "\"_answer\": \"The most significant holdup for most people is the movement of the priority date. Check out the visa bulletin and the perm processing times. That should provide you with a good idea.\"}\n", + "{\"_question\": \"What is the normal duration to receive a green card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and Europe. I have a job offer from the US and I would like to submit the application.\",\n", + "\"_answer\": \"The biggest holdup for most people is the priority date movement. Look at the Visa Bulletin and the Permanent Processing Times for more information. That should give you a good idea of what to expect.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the normal duration to obtain a green card under the EB2 category? I have a master's degree in international business and 7 years of experience in the US and EU. I have been offered a job in America and I am looking to submit the petition.\",\n", - "\"_answer\": \"The biggest impediment for most people is the advancement of the priority date. Review the visa bulletin and the perm processing times. That should give you a good idea.\"}\n", + "{\"_question\": \"What is the average time it takes to get a green card through the EB2 category? I possess a Master's in International Business and 7 years of experience in the US and EU. I have a job offer from the US and I want to file the petition.\",\n", + "\"_answer\": \"The main delay for many people is the priority date movement. Check the Visa Bulletin and the Permanent Processing Times to get a better idea. That should give you a better understanding.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the average time required to acquire a green card via the EB2 category? I possess a master's degree in international business and 7 years of experience in the USA and Europe. I have received a job offer from the US and I am eager to file the petition.\",\n", - "\"_answer\": \"The most significant delay for most people is the progress of the priority date. Look at the visa bulletin and the perm processing times. That should give you a good idea.\"} \n", + "{\"_question\": \"What is the usual timeline to obtain a green card through the EB2 category? I have a Master's in International Business and 7 years of experience in the US and Europe. I obtained a job offer from the US and I plan to submit the petition.\",\n", + "\"_answer\": \"The biggest hurdle for many people is the priority date movement. Have a look at the Visa Bulletin and the Permanent Processing Times for more information. That should provide you with a better understanding.\"} \n", "\n", "\n", "\n", @@ -3676,16 +3813,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I use my education to qualify for EB-2? I have a Bachelor's in Computing from the UK which was a three year course and a Master's from the UK in Computing which was a one year course. Will this be enough to meet the requirements for EB-2?\",\n", - "\"_answer\": \"No way to know for sure. It all depends on the type of degrees and how they are described on the Form I-9089.\"}\n", + "{\"_question\": \"Do I meet the requirements for EB-2 eligibility? I recently had my PERM approved in the EB-2 category and I'm wondering if my education qualifies for the EB-2 category. I have a Bachelor's in Computing from the UK, which was a three-year course, and a Master's from the UK in Computing, which was a one-year course. Is this qualification enough for EB-2?\",\n", + "\"_answer\": \"It's hard to say. It all depends on the type of degrees and the language used in the form I-9089.\"}\n", "\n", "######\n", - "{\"_question\": \"Is my education sufficient for EB-2 status? I have a Bachelor's in Computing from the UK that took three years and a Master's from the UK in Computing that was a one year course. Will this qualify me for EB-2?\",\n", - "\"_answer\": \"Cannot be certain. It all comes down to the type of degrees and the way they are presented on the Form I-9089.\"}\n", + "{\"_question\": \"Will my qualifications suffice for EB-2? My PERM was recently approved in the EB-2 category and I'm curious if my education meets the requirements. I have a Bachelor's in Computing from the UK, which was a three-year program, and a Master's from the UK in Computing, which was a one-year program. Is this enough for EB-2?\",\n", + "\"_answer\": \"It's impossible to tell. It all comes down to the type of degrees and the language used in the form I-9089.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for EB-2? I have a Bachelor's in Computing from the UK that was a three year course and a Master's from the UK in Computing that was a one year course. Will this be enough to qualify for EB-2?\",\n", - "\"_answer\": \"Unable to tell. It all depends on the type of degrees and how they are described on the Form I-9089.\"} \n", + "{\"_question\": \"Am I eligible for EB-2? I just had my PERM approved in the EB-2 category and I'm wondering if my education satisfies the EB-2 criteria. I have a Bachelor's in Computing from the UK, which was a three-year course, and a Master's from the UK in Computing, which was a one-year course. Is this qualification sufficient for EB-2?\",\n", + "\"_answer\": \"It's hard to predict. It all depends on the type of degrees and the language used in the form I-9089.\"} \n", "\n", "\n", "\n", @@ -3694,16 +3831,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I use cross-chargeability if I was born in India and my H1B has an approved EB2 I-140, but I can't apply for the I-485 since my priority date is November 2008? Will marrying someone from a different country than India/China enable us to file for the I-485 right away?\",\n", - "\"_answer\": \"Cross-chargeability is an option if your partner was born in a country other than your own. Your spouse can submit their I-485 if they are currently in the US.\"}\n", + "{\"_question\": \"Can I take advantage of cross chargeability if I am on an H1B visa, born in India, and have an approved EB2 I-140, but cannot apply for I-485 due to a November 2008 priority date? Is it possible if my girlfriend, who was born in a country other than India or China, and is not currently in the US or on an H1B visa, marries me? Would that enable us to both file for I-485 immediately?\",\n", + "\"_answer\": \"Cross changeability is an option if your partner was born in a country different from yours. She can only submit her I-485 if she is in the US.\"}\n", "\n", "######\n", - "{\"_question\": \"I was born in India and have an approved EB2 I-140 for my H1B, but I can't file for the I-485 because my priority date is November 2008. If I marry someone from a different country than India/China, will that let us both apply for the I-485 straight away?\",\n", - "\"_answer\": \"Cross-chargeability is possible if your partner was born in a country other than your own. Your partner can file their I-485 if they are in the US.\"}\n", + "{\"_question\": \"If I am on an H1B visa, born in India, and have an approved EB2 I-140, but cannot submit an I-485 due to a November 2008 priority date, can I take advantage of cross chargeability? What if my girlfriend, who was born in a country other than India or China, marries me? Would that allow us to file for I-485 straight away?\",\n", + "\"_answer\": \"Cross changeability is available if your partner was born in a different country from yours. She can only file her I-485 if she is in America.\"}\n", "\n", "######\n", - "{\"_question\": \"I was born in India and have an approved EB2 I-140 for my H1B, but I'm unable to apply for the I-485 due to my priority date being November 2008. If I marry someone from a different country than India/China, will that enable us to submit the I-485 immediately?\",\n", - "\"_answer\": \"Cross-chargeability is an option if your spouse was born in a different country than yours. Your partner can submit their I-485 if they are currently in the US.\"} \n", + "{\"_question\": \"Since I am on an H1B visa, born in India, and have an approved EB2 I-140, but cannot apply for I-485 due to a November 2008 priority date, is cross chargeability an option? What if my girlfriend, who was born in a country other than India or China, and is not in the US or on an H1B visa, marries me? Would that enable us to both submit for I-485 right away?\",\n", + "\"_answer\": \"Cross changeability is possible if your spouse was born in a different country than yours. She can only submit her I-485 if she is in the US.\"} \n", "\n", "\n", "\n", @@ -3712,16 +3849,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Can I still be refused by the US Embassy despite my EB2 being approved by the USCIS?\",\n", - "\"_answer\": \"It is improbable, yet possible.\"}\n", + "{\"_question\": \"What are the chances of the US Embassy denying my EB2 approval from the USCIS?\",\n", + "\"_answer\": \"It is unlikely, however there is still a chance.\"}\n", "\n", "######\n", - "{\"_question\": \"What are the chances of being rejected by the US Embassy despite having my EB2 approved by the USCIS?\",\n", - "\"_answer\": \"It is unlikely, yet achievable.\"}\n", + "{\"_question\": \"Can I be denied by the US Embassy despite having my EB2 approved by the USCIS?\",\n", + "\"_answer\": \"The possibility exists, though it is not likely.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to be denied by the US Embassy even if the USCIS approved my EB2?\",\n", - "\"_answer\": \"It is improbable, yet doable.\"} \n", + "{\"_question\": \"What is the probability of the US Embassy rejecting my EB2 approval from the USCIS?\",\n", + "\"_answer\": \"It is improbable, but not impossible.\"} \n", "\n", "\n", "\n", @@ -3730,16 +3867,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it possible to apply for a permanent position under EB-2 if I am a technology professional with nine years of work experience and am graduating from a part-time MBA program with a concentration in finance this December?\",\n", - "\"_answer\": \"Yes, as long as you have earned your master's degree by the time you file for the permanent position, you should be eligible to apply for EB-2.\"}\n", + "{\"_question\": \"Would I be eligible to apply for permanent residency in the US under EB-2 if I have a Master's degree in Finance and 9 years of experience as a technology professional?\",\n", + "\"_answer\": \"Yes, provided that you have earned the degree prior to submitting your application for permanent residency.\"}\n", "\n", "######\n", - "{\"_question\": \"If I am a technology professional with nine years of experience and am finishing a part-time MBA program with a concentration in finance this December, can I apply for a permanent position under EB-2?\",\n", - "\"_answer\": \"Yes, provided you have obtained your master's degree before you submit the permanent position application, you should be able to be eligible for EB-2.\"}\n", + "{\"_question\": \"If I am a technology professional with a Master's degree in Finance and 9 years of experience, am I qualified to apply for EB-2 permanent residency?\",\n", + "\"_answer\": \"Yes, if you have the degree before you file your permanent residency application, you should be able to get EB-2.\"}\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for the EB-2 permanent position if I am a technology professional with nine years of work experience and will be graduating from a part-time MBA program (finance concentration) this December?\",\n", - "\"_answer\": \"Yes, as long as you have earned your master's degree before submitting your permanent position application, you should be able to get EB-2.\"} \n", + "{\"_question\": \"Can I apply for EB-2 permanent residency with a Master's degree in Finance and 9 years of experience in technology?\",\n", + "\"_answer\": \"Yes, if you have obtained the degree before submitting your application for permanent residency, you should be eligible for EB-2.\"} \n", "\n", "\n", "\n", @@ -3748,16 +3885,16 @@ "\n", "\n", "######\n", - "{\"_question\":\"Can company B refile the I-140 using the labor certificate from company A and file it under EB2?\",\n", - "\"_answer\":\"It is likely that company B can use the labor certificate from company A to refile the I-140 under EB2. Consult with your legal team for further advice.\"}\n", + "{\"_question\": \"Can company B refile my I-140 under EB2 if they acquired the assets from company A?\",\n", + "\"_answer\": \"It appears that there is a possibility to start a new PERM process under EB2 and transfer the priority date. You should discuss this with your legal counsel.\"}\n", "\n", "######\n", - "{\"_question\":\"If company B takes over the assets of company A, can they use the labor certificate to refile the I-140 under EB2?\",\n", - "\"_answer\":\"It appears to be a viable option for company B to use the labor certificate from company A to refile the I-140 under EB2. It is recommended to consult with a legal team for more information.\"}\n", + "{\"_question\": \"If company B acquires the assets from company A, is it possible to refile my I-140 under EB2?\",\n", + "\"_answer\": \"It looks like this could be a good chance to initiate a new PERM process under EB2 and transfer the priority date. It is recommended that you consult with your attorney.\"}\n", "\n", "######\n", - "{\"_question\":\"Is it possible for company B to use the labor certificate from company A to refile the I-140 under EB2?\",\n", - "\"_answer\":\"It looks like company B can use the labor certificate from company A to refile the I-140 under EB2. It is advisable to talk to your legal team for more information.\"} \n", + "{\"_question\": \"Is it feasible for company B to refile my I-140 under EB2 if they take over the assets from company A?\",\n", + "\"_answer\": \"This could be a great opportunity to start a fresh PERM application under EB2 and switch the priority date. You should speak with your legal advisor about this.\"} \n", "\n", "\n", "\n", @@ -3766,16 +3903,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of my I-140 being denied due to my educational background of 10+3.5 years diploma in computer engineering and 3 years bs in information systems (bits)?\",\n", - "\"_answer\": \"It is possible that your I-140 could be denied because of your educational background. It is best to discuss your concerns with your lawyer and see if you can get a written response.\"}\n", + "{\"_question\": \"I have a 10+3.5 years diploma and 3 years bs in Computer Engineering and Information Systems (BITS). My labor is being processed under the EB2 category, and I'm worried that my I-140 will get denied based on my education. Mr. Khanna, do you have any successful cases with a diploma and bs?\",\n", + "\"_answer\": \"I understand your concern. These cases can be tricky to get approved. I'm commenting in general because I don't know the specifics. It would be best to discuss your worries with your lawyer and get a response in writing if possible.\"}\n", "\n", "######\n", - "{\"_question\": \"I am worried that my I-140 application will be refused because of my educational qualifications which include 10+3.5 years diploma in computer engineering and 3 years bs in information systems (bits). Mr. Khanna, do you have any cases that have been approved with this type of education?\",\n", - "\"_answer\": \"It is likely that your apprehension is valid. These types of cases are difficult to get approved. I am unable to give you a definitive answer because I do not know the exact facts. You should speak to your lawyer about your worries and see if you can get a written response.\"}\n", + "{\"_question\": \"I have a combined 10+3.5 years diploma and 3 years bs in Computer Engineering and Information Systems (BITS). My labor is in the process of being approved under the EB2 category, but I'm concerned that my I-140 might be rejected due to my education. Mr. Khanna, do you have any past cases with a diploma and bs that were successful?\",\n", + "\"_answer\": \"I can see why you're concerned. These types of cases can be hard to get approved. I'm speaking generally here since I don't have the details. Talk to your attorney about your worries and try to get a written response if you can.\"}\n", "\n", "######\n", - "{\"_question\": \"I am concerned that my I-140 will be rejected due to my educational background which is 10+3.5 years diploma in computer engineering and 3 years bs in information systems (bits). Mr. Khanna, do you have any successful cases with this kind of education?\",\n", - "\"_answer\": \"You have reason to be concerned. It is not easy to get approval for this type of situation. I cannot give you an exact answer without knowing the facts. It is best to talk to your lawyer about your worries and see if you can get a written response.\"} \n", + "{\"_question\": \"I obtained a 10+3.5 years diploma and 3 years bs in Computer Engineering and Information Systems (BITS). My labor is currently being reviewed under the EB2 category, but I'm worried that my I-140 may be denied because of my education. Mr. Khanna, do you have any approved cases with a diploma and bs?\",\n", + "\"_answer\": \"I understand your apprehension. These kinds of cases can be difficult to get approved. I'm speaking generally since I don't know the specifics. It's best to discuss your fears with your lawyer and try to get a written response if possible.\"} \n", "\n", "\n", "\n", @@ -3784,16 +3921,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What are the odds of my EB1 Extraordinary Ability petition being accepted in my second filing?\",\n", - "\"_answer\": \"It is impossible to predict the outcome of your petition without more information about your case.\"}\n", + "{\"_question\": \"What are the prospects for my second EB1 application?\",\n", + "\"_answer\": \"It's hard to say without knowing the details of your case. It's like trying to diagnose a patient without having access to them or their records.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of me getting approval for my EB1 Extraordinary Ability petition in my second filing?\",\n", - "\"_answer\": \"It is impossible to provide an accurate assessment without more information regarding your case.\"}\n", + "{\"_question\": \"What are the odds of my EB1 application succeeding this time?\",\n", + "\"_answer\": \"It's impossible to give an accurate prediction without having more information. It's like trying to diagnose a patient without seeing them or their records.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the probability of my EB1 Extraordinary Ability petition being approved in my second filing?\",\n", - "\"_answer\": \"It is impossible to give a definitive answer without more information about your situation.\"} \n", + "{\"_question\": \"What is the likelihood of my EB1 application succeeding on a second attempt?\",\n", + "\"_answer\": \"It's not possible to give a reliable answer without more information. It's like trying to diagnose a patient without access to them or their records.\"} \n", "\n", "\n", "\n", @@ -3802,16 +3939,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB-2 visa given my academic background?\",\n", - "\"_answer\": \"EB-2 is available for those who have a post-graduate degree (according to US standards) or a 4 year bachelor's degree with five years of progressively responsible experience. You should consult your lawyer to explore the possibility of applying for an EB-2 and transferring your priority date.\"}\n", + "{\"_question\": \"Do I qualify for an EB2 visa? I have a Bachelor's Degree (BSN) in Nursing, completed a medical program equivalent to a Master's Degree, and have been an administrator at a top nursing school in Manila for 5 years. I'm also working on my PhD in Biology at a top university in Manila. Is an EB2 petition family-based? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB stands for employment-based. To qualify for an EB2 visa, you must have either a postgraduate degree (by US standards) or a four-year Bachelor's Degree with five years of progressively responsible experience. You should consult with your attorney about applying for an EB2 and transferring your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an EB-2 visa despite the retrogression?\",\n", - "\"_answer\": \"Yes, you may be eligible to apply for an EB-2 visa. This type of visa is available to those who have a post-graduate degree (according to US standards) or a 4 year bachelor's degree with five years of progressively responsible experience. You should speak with your lawyer to discuss the possibility of transferring your priority date.\"}\n", + "{\"_question\": \"I am currently petitioned under EB3, but my application has been affected by retrogression. Can I apply for an EB2 visa? I have a Bachelor's Degree (BSN) in Nursing, took up a medical program equivalent to a Master's Degree, and have been a faculty/administrator at a top nursing school in Manila for 5 years. I am also pursuing my PhD in Biology at a top university in Manila. Am I eligible for an EB2? Is an EB2 petition family-based? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB stands for employment-based. In order to qualify for an EB2 visa, you must have either a postgraduate degree (by US standards) or a four-year Bachelor's Degree with five years of progressively responsible experience. You should consult with your lawyer about applying for an EB2 and transferring your priority date.\"}\n", "\n", "######\n", - "{\"_question\": \"Will my parents be able to join me if I am granted an EB-2 visa?\",\n", - "\"_answer\": \"EB-2 is an employment-based visa, so it is not a family-based petition. However, your parents may be eligible to apply for a family-based visa. You should consult your lawyer to explore the possibility of applying for an EB-2 and transferring your priority date.\"} \n", + "{\"_question\": \"I have been petitioned under EB3 and am stuck with retrogression. Can I apply for an EB2 visa? I have a Bachelor's Degree (BSN) in Nursing, completed a medical program equivalent to a Master's Degree, and have been a faculty/administrator at a top nursing school in Manila for 5 years. I am also working on my PhD in Biology at a top university in Manila. Am I eligible for an EB2? Is an EB2 petition family-based? My parents live in New Jersey.\", \n", + "\"_answer\": \"EB stands for employment-based. To be eligible for an EB2 visa, you must have either a postgraduate degree (by US standards) or a four-year Bachelor's Degree with five years of progressively responsible experience. You should speak with your attorney about applying for an EB2 and transferring your priority date.\"} \n", "\n", "\n", "\n", @@ -3820,16 +3957,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the standard for immigration law when it comes to degree completion? I have a full official transcript and a letter confirming that I have fulfilled all the requirements for my master's degree. The university's next graduation date is January 30, 2009, when I will receive the diploma. Can I use the full official transcript to apply for the EB2 visa or do I need to wait until I receive the diploma?\", \n", - "\"_answer\": \"Generally, immigration law looks at when the degree was finished, not when the diploma was given. Consult with your attorneys for more information.\"}\n", + "{\"_question\": \"Do I need to wait for the diploma to apply for EB2?\",\n", + "\"_answer\": \"Usually, when it comes to immigration law, it is the completion of the degree that matters, not the formal diploma. Consult with your attorneys.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the criterion for immigration law regarding degree completion? I have a full, official transcript as well as a letter verifying that I have completed all the requirements for my master's degree. The university's next graduation date is January 30, 2009, when I will get the diploma. Can I submit the full, official transcript for my EB2 visa application or do I have to wait until I get the diploma?\", \n", - "\"_answer\": \"Generally, immigration law focuses on when the degree was finished - not when the diploma was awarded. Speak with your lawyers for more information.\"}\n", + "{\"_question\": \"When can I apply for EB2?\",\n", + "\"_answer\": \"Immigration law typically looks at when the degree was finished, not when the diploma is awarded. Speak to your legal advisors.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the standard for immigration law when it comes to degree completion? I have a full, official transcript and a letter confirming that I have met all the requirements for my master's degree. The university's next graduation date is January 30, 2009, when I will obtain the diploma. Can I use the full, official transcript to apply for the EB2 visa or do I have to wait until I receive the diploma?\", \n", - "\"_answer\": \"Generally, immigration law looks at when the degree was completed - not when the diploma was given. Consult with your attorneys for more information.\"} \n", + "{\"_question\": \"What is the basis for EB2 application?\",\n", + "\"_answer\": \"The law of immigration usually takes into account when the degree was completed, not when the diploma was presented. You should contact your lawyers.\"} \n", "\n", "\n", "\n", @@ -3838,16 +3975,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"What is the risk of being denied due to educational qualifications in the EB-2 category?\", \n", - "\"_answer\": \"The educational requirements are typically scrutinized in depth during the I-140 stage, however, USCIS can inquire about them at any time. I have seen I-140s that have been approved and then revoked during the I-485 stage.\"}\n", + "{\"_question\": \"What is the chance of being denied due to educational qualifications when filing under EB-2?\",\n", + "\"_answer\": \"It is possible for USCIS to query your educational background at any stage of the process, but it is more likely to be questioned in detail during the I-140 stage.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the likelihood of being refused on the basis of one's educational background under the EB-2 category?\", \n", - "\"_answer\": \"It is typical for one's educational background to be closely examined at the I-140 stage, but USCIS could raise questions about it at any point. There have been cases of I-140s that were accepted and then denied during the I-485 stage.\"}\n", + "{\"_question\": \"What are the risks of denial when filing for EB-2 based on educational qualifications?\",\n", + "\"_answer\": \"USCIS may bring up any issues related to your educational qualifications at any point during the process, but it is more often looked at closely during the I-140 phase. I have seen I-140's that were approved and then denied at the I-485 stage.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the chance of refusal due to educational qualifications when filing under EB-2?\", \n", - "\"_answer\": \"The educational qualifications are usually assessed in detail at the I-140 stage, however, USCIS could bring it up at any stage. I have seen approved I-140s that were overturned and denied at the I-485 stage.\"} \n", + "{\"_question\": \"When is the most likely time for educational qualifications to be denied for EB-2?\",\n", + "\"_answer\": \"The I-140 phase is usually when educational qualifications are examined in depth. However, USCIS may raise any questions at any stage, and I have seen cases where an approved I-140 was reversed at the I-485 stage.\"} \n", "\n", "\n", "\n", @@ -3856,16 +3993,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Is it feasible to file for an employment-based green card in the EB2 category if I have a B.Sc. in Physics from India and an MCA in IT?\",\n", - "\"_answer\": \"Yes, it is possible, however, it is important to have your lawyers draft the PERM application carefully so that even if EB2 is denied, EB3 may still be approved.\"}\n", + "{\"_question\": \"Do I qualify for an EB2 green card if I have a B.Sc in Physics from India and a MCA in IT from the same country?\",\n", + "\"_answer\": \"It is possible, though your lawyer should craft the PERM application with care to ensure that if EB2 is rejected, EB3 is still an option.\"}\n", "\n", "######\n", - "{\"_question\": \"Can I apply for an employment-based green card in the EB2 classification if I have a B.Sc. in Physics from India and an MCA in IT?\",\n", - "\"_answer\": \"Yes, it is a possibility, but it is important that your lawyers create the PERM application carefully so that if EB2 is rejected, EB3 may still be approved.\"}\n", + "{\"_question\": \"What are the chances of me getting an EB2 visa if my educational background includes a B.Sc in Physics from India and a MCA in IT from the same country?\",\n", + "\"_answer\": \"It is a possibility, however your attorney should be sure to construct the PERM application cautiously so that if EB2 is denied, EB3 is still a viable option.\"}\n", "\n", "######\n", - "{\"_question\": \"Is it possible to submit an application for an employment-based green card in the EB2 category if I have a B.Sc. in Physics from India and an MCA in IT?\",\n", - "\"_answer\": \"Yes, it is doable, however, it is essential to have your lawyers craft the PERM application cautiously so that if EB2 is denied, EB3 may still be accepted.\"} \n", + "{\"_question\": \"If I have a B.Sc in Physics from India and a MCA in IT from the same country, can I apply for an EB2 green card?\",\n", + "\"_answer\": \"It is feasible, but your legal representative should formulate the PERM application prudently so that if EB2 is denied, EB3 is still available.\"} \n", "\n", "\n", "\n", @@ -3874,16 +4011,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Do I qualify for an EB2 visa? I have a B.Sc in Physics from India and an MCA in IT from India. Can I file for an employment-based green card in the EB2 category if I am applying for a job in an IT company?\",\n", - "\"_answer\": \"It is feasible, but make sure your attorneys carefully construct the PERM application. That way, if the EB2 is denied, the EB3 may still be accepted.\"}\n", + "{\"_question\": \"Is it feasible to apply for an employment-based green card in the EB2 category if I have a B.Sc in Physics from India and a Masters in Computer Science from the same country?\",\n", + "\"_answer\": \"Yes, but make sure your lawyers draft the PERM application carefully to ensure that if EB2 is denied, EB3 is still a viable option.\"}\n", "\n", "######\n", - "{\"_question\": \"Am I eligible for an EB2 visa? I have a B.Sc in Physics from India and an MCA in IT from India. Could I file for an employment-based green card in the EB2 category if I am applying for a job in an IT company?\",\n", - "\"_answer\": \"It is feasible, but your lawyers should craft the PERM application cautiously. That way, if the EB2 is denied, the EB3 could still be approved.\"}\n", + "{\"_question\": \"Can I obtain an employment-based green card in the EB2 classification with a B.Sc in Physics from India and a Masters in Computer Science from the same nation?\",\n", + "\"_answer\": \"Yes, it is possible. Advise your attorneys to draft the PERM application with caution so that if EB2 is not granted, EB3 is still an option.\"}\n", "\n", "######\n", - "{\"_question\": \"EB2 qualification. I have a question about EB2 eligibility. I have a B.Sc in Physics from India and an MCA in IT from India. Can I submit an employment-based green card in the EB2 category if I am applying for a job in an IT company?\",\n", - "\"_answer\": \"It is doable, but have your attorneys carefully compose the PERM application. That way, if the EB2 is rejected, the EB3 may still be granted.\"} \n", + "{\"_question\": \"Would I be eligible for an employment-based green card in the EB2 category if I have a B.Sc in Physics from India and a Masters in Computer Science from the same country?\",\n", + "\"_answer\": \"Yes, but make sure your legal team prepares the PERM application carefully to ensure that if EB2 is not approved, EB3 is still an option.\"} \n", "\n", "\n", "\n", @@ -3892,16 +4029,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"Does my wife qualify for EB2 processing as an occupational therapist?\",\n", - "\"_answer\": \"OT's do not have a special category like physical therapists, but it is possible to apply for EB-2. Your wife should consult with her lawyers to determine if she qualifies.\"}\n", + "{\"_question\": \"Does my wife qualify for EB2 processing similar to physical therapists as she has a post professional degree in occupational therapy from a well-known school?\",\n", + "\"_answer\": \"Unfortunately, occupational therapists do not have a special category like physical therapists. However, EB2 may be possible. Your wife should consult with her lawyers for more information.\"}\n", "\n", "######\n", - "{\"_question\": \"What is the process for my wife to apply for EB2 with her occupational therapist degree?\",\n", - "\"_answer\": \"OT's do not have a special pathway like physical therapists, but it is possible to apply for EB-2. Your wife should speak with her lawyers to find out if she meets the criteria.\"}\n", + "{\"_question\": \"What are the chances of my wife obtaining EB2 processing with her post professional degree in occupational therapy from a reputable school?\",\n", + "\"_answer\": \"Occupational therapists do not have a special category like physical therapists. Nevertheless, EB2 might be achievable. Your wife should talk to her lawyers for more details.\"}\n", "\n", "######\n", - "{\"_question\": \"Can my wife use her occupational therapist degree to apply for EB2?\",\n", - "\"_answer\": \"OT's do not have a dedicated category like physical therapists, but it is possible to apply for EB-2. Your wife should check with her lawyers to see if she is eligible.\"} \n", + "{\"_question\": \"Is it possible for my wife to get EB2 processing with her OT degree from a well-known school?\",\n", + "\"_answer\": \"Occupational therapists do not have a separate category like physical therapists. Nonetheless, EB2 could be possible. Your wife should consult with her lawyers for more information.\"} \n", "\n", "\n", "\n", @@ -3910,12 +4047,16 @@ "\n", "\n", "######\n", - "{\"_question\": \"I have 3 years of experience in the IT field and am looking to finish a master's degree. Is it a good idea to pursue a master's degree while having 3 years of work experience? Please give me your advice.\",\n", - "\"_answer\": \"I understand you are inquiring if you can apply for an EB-2 visa. The answer is yes, once you have obtained your master's degree and have a job that requires the degree or a bachelor's degree plus 5 years of experience.\"}\n", + "{\"_question\": \"Do I have the qualifications to apply for an EB-2 green card if I have 3 years of IT experience and am in the process of completing a master's degree?\",\n", + "\"_answer\": \"Yes, you should have the qualifications to apply for an EB-2 green card if you have 3 years of IT experience and have completed a master's degree.\"}\n", "\n", "######\n", - "{\"_question\": \"I have 3 years of experience in IT and am about to complete my master's. Is it beneficial to do the MS while having 3 years of work experience? Please provide me with your opinion.\",\n", - "\"_answer\": \"I'm assuming you are asking if you can submit an application for an EB-2 green card. The answer is yes, once you have finished your master's and have a job that needs the degree or a bachelor's plus five years of experience.\"} \n", + "{\"_question\": \"If I have 3 years of IT experience and am working towards a master's degree, can I apply for an EB-2 green card?\",\n", + "\"_answer\": \"Yes, you should be able to apply for an EB-2 green card with 3 years of IT experience and a master's degree.\"}\n", + "\n", + "######\n", + "{\"_question\": \"If I have 3 years of experience in IT and am finishing a master's degree, do I qualify for an EB-2 green card?\",\n", + "\"_answer\": \"Yes, you should qualify for an EB-2 green card with 3 years of experience in IT and a completed master's degree.\"} \n", "\n", "\n", "\n" @@ -3926,12 +4067,12 @@ "qaa_augmented_raw = []\n", "for id, batch_inputs_string in enumerate(qaa_list_encoded):\n", " print(id, \"\\n\") # \"\\n\\n\\n\", \"input:\\n\", batch_inputs_string, \"\\n\"\n", - " completion_batch = openai.Completion.create(\n", - " prompt=batch_inputs_string, \n", + " completion_batch = client.completions.create(\n", + " prompt=batch_inputs_string,\n", " model=\"text-davinci-003\",\n", " temperature = 0.5,\n", " max_tokens = 2000 # The maximum number of tokens to generate in the completion\n", - " )\n", + " ).model_dump()\n", " results_string = completion_batch['choices'][0]['text']\n", " print(results_string, \"\\n\\n\\n\")\n", " qaa_augmented_raw.append(results_string)" @@ -3947,7 +4088,7 @@ }, { "cell_type": "code", - "execution_count": 125, + "execution_count": 16, "id": "3df4c39b-fca0-4f80-a5ef-2e5b9c790b4d", "metadata": {}, "outputs": [], @@ -3982,7 +4123,7 @@ }, { "cell_type": "code", - "execution_count": 126, + "execution_count": 17, "id": "ad7db994-92b6-4c17-b083-2dbddacd272c", "metadata": {}, "outputs": [], @@ -4002,17 +4143,17 @@ }, { "cell_type": "code", - "execution_count": 127, + "execution_count": 18, "id": "9269aba8-ee1e-4f71-bf1c-e80d806b0842", "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "'\\n\\n######\\n{\"_question\": \"Do I need to wait before beginning the green card process if my employer files an H-1B and the lottery is picked?\",\\n\"_answer\": \"No, the employer can initiate the green card process prior to your joining. You can review the salary figures by county and profession at this link -https://www.flcdatacenter.com/\"}\\n\\n######\\n{\"_question\": \"Can I start the green card process if my employer has filed an H-1B and it has been selected in the lottery?\",\\n\"_answer\": \"Yes, the employer can begin the green card process even before you join. Check out this link -https://www.flcdatacenter.com/ to view the salary figures by county and profession.\"}\\n\\n######\\n{\"_question\": \"If my employer files an H-1B and it is selected in the lottery, when can I start the green card process?\",\\n\"_answer\": \"The employer can initiate the green card process prior to your joining. You can examine the salary figures by county and profession at this link -https://www.flcdatacenter.com/\"}'" + "'\\n\\n######\\n{\"_question\": \"Can I begin the green card process if my H-1B is picked in the lottery and I have a master\\'s degree in engineering management?\",\\n\"_answer\": \"Yes, your employer can initiate the green card process even before you start working. You can check the salary requirements for EB-2 advanced degree holders by county and profession by visiting this website - https://www.flcdatacenter.com/\"}\\n\\n######\\n{\"_question\": \"If I have a master\\'s degree in engineering management and my employer files my H-1B, can I start the green card process if it is selected in the lottery?\",\\n\"_answer\": \"Yes, the green card process can be initiated by the employer before you join. You can view the salary cap for EB-2 advanced degree holders by county and profession by using this link - https://www.flcdatacenter.com/\"}\\n\\n######\\n{\"_question\": \"If I have a master\\'s degree in engineering management and my employer submits my H-1B, can I initiate the green card process if it is chosen in the lottery?\",\\n\"_answer\": \"Yes, the employer can begin the green card process even before you join. You can see the salary figures for EB-2 advanced degree holders by county and profession by consulting this website - https://www.flcdatacenter.com/\"}'" ] }, - "execution_count": 127, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -4045,7 +4186,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": null, "id": "ec478198-784d-4b53-8dd0-293ef337814a", "metadata": {}, "outputs": [], @@ -4053,7 +4194,7 @@ }, { "cell_type": "code", - "execution_count": 128, + "execution_count": 19, "id": "1284802f-185f-4783-9cd1-26706baafbdf", "metadata": {}, "outputs": [ @@ -4061,7 +4202,25 @@ "name": "stdout", "output_type": "stream", "text": [ - "276\n" + "unterminated string literal (detected at line 3) (, line 3)\n", + "\n", + "{\"_question\": \"What is the educational criteria for EB-2?\",\n", + "\"_answer\": \"In June 2007, USCIS clarified what is considered to be equivalent to a U.S. master's degree for employment-based category 2. Each petition and its supporting documentation are examined on a case-by-case basis and degree equivalencies are based on the evidence presented with the individual case. However, the below is provided as a general outline: 1. U.S. master's degree as long as it is in the field required, no additional document is required. 2. Four-year bachelor's degree + two-year master's degree (India) with degrees in the same or related fields, this will generally be considered the equivalent to a U.S. master's degree and no additional document is required. 3. Three-year bachelor's degree + three-year master's degree (India) with degrees in the same or related fields, this will generally be equivalent to a U.S. master's degree and no additional document is required. 4. Three-year bachelor's degree + one-year postgraduate diploma + two-year master's degree (India) with degrees in the same or similar field - this would generally be considered the equivalent of a bachelor's degree plus one additional year of education. Therefore, the beneficiary would also need to have five years' progressive experience. If the postgraduate diploma is determined to be progressive postgraduate education that is a continuation of the three-year bachelor's degree, it is possible that this would be considered the equivalent to a U.S. master's degree and there would be no need to establish five years' progressive experience. 5. Three-year bachelor's degree + two-year master's degree (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference (EB-2) category. 6. Three-year bachelor's degree + two-year master's degree (India) + five years' progressive, post-master's degree experience generally, the educational degrees would be determined to be the equivalent of a U.S. bachelor's + one year and the beneficiary would meet the statutory requirement. 7. Three-year bachelor's degree + two-year master's degree + one-year postgraduate diploma (India) generally, this would be the equivalent of a bachelor's degree + one year and would require five years' progressive experience to qualify under the 2nd preference category (EB-2). If the postgraduate diploma is determined to be\n", + "\n", + "\n", + "\n", + "\n", + "invalid syntax. Perhaps you forgot a comma? (, line 2)\n", + "\n", + "{\"_question\": \"I'm an Indian citizen and my wife is a Russian citizen, born in Russia. We would like to apply for a green card together and I was wondering if I can use her country's priority date (\"current\" as of today) for the green card?\",\n", + "\"_answer\": \"Yes, that is possible. This is known as 'cross changeability'.\"}\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "273\n" ] } ], @@ -4076,7 +4235,7 @@ " try:\n", " str2dict = ast.literal_eval(item)\n", " QApair_dict.append(str2dict)\n", - " except Exception as e: \n", + " except Exception as e:\n", " print(e)\n", " print(item)\n", " print(\"\\n\\n\\n\")\n", @@ -4090,7 +4249,7 @@ }, { "cell_type": "code", - "execution_count": 129, + "execution_count": 20, "id": "d7f4de55-00fe-4fdd-afa6-1eda97d6dd5f", "metadata": {}, "outputs": [ @@ -4122,28 +4281,28 @@ " \n", " \n", " 0\n", - " Do I need to wait before beginning the green c...\n", - " No, the employer can initiate the green card p...\n", + " Can I begin the green card process if my H-1B ...\n", + " Yes, your employer can initiate the green card...\n", " \n", " \n", " 1\n", - " Can I start the green card process if my emplo...\n", - " Yes, the employer can begin the green card pro...\n", + " If I have a master's degree in engineering man...\n", + " Yes, the green card process can be initiated b...\n", " \n", " \n", " 2\n", - " If my employer files an H-1B and it is selecte...\n", - " The employer can initiate the green card proce...\n", + " If I have a master's degree in engineering man...\n", + " Yes, the employer can begin the green card pro...\n", " \n", " \n", " 3\n", - " What is the process for upgrading from EB-3 to...\n", - " It is possible to upgrade from EB-3 to EB-2 as...\n", + " What is the eligibility and process for upgrad...\n", + " It is possible to upgrade from EB-3 to EB-2 st...\n", " \n", " \n", " 4\n", - " What is involved in the EB-3 to EB-2 porting p...\n", - " If the PERM was submitted as an EB-2, you can ...\n", + " Can you explain the process for changing from ...\n", + " If the PERM was originally filed as an EB-2, i...\n", " \n", " \n", " ...\n", @@ -4151,66 +4310,66 @@ " ...\n", " \n", " \n", - " 271\n", - " Does my wife qualify for EB2 processing as an ...\n", - " OT's do not have a special category like physi...\n", + " 268\n", + " What are the chances of my wife obtaining EB2 ...\n", + " Occupational therapists do not have a special ...\n", " \n", " \n", - " 272\n", - " What is the process for my wife to apply for E...\n", - " OT's do not have a special pathway like physic...\n", + " 269\n", + " Is it possible for my wife to get EB2 processi...\n", + " Occupational therapists do not have a separate...\n", " \n", " \n", - " 273\n", - " Can my wife use her occupational therapist deg...\n", - " OT's do not have a dedicated category like phy...\n", + " 270\n", + " Do I have the qualifications to apply for an E...\n", + " Yes, you should have the qualifications to app...\n", " \n", " \n", - " 274\n", - " I have 3 years of experience in the IT field a...\n", - " I understand you are inquiring if you can appl...\n", + " 271\n", + " If I have 3 years of IT experience and am work...\n", + " Yes, you should be able to apply for an EB-2 g...\n", " \n", " \n", - " 275\n", - " I have 3 years of experience in IT and am abou...\n", - " I'm assuming you are asking if you can submit ...\n", + " 272\n", + " If I have 3 years of experience in IT and am f...\n", + " Yes, you should qualify for an EB-2 green card...\n", " \n", " \n", "\n", - "

276 rows × 2 columns

\n", + "

273 rows × 2 columns

\n", "" ], "text/plain": [ " _question \\\n", - "0 Do I need to wait before beginning the green c... \n", - "1 Can I start the green card process if my emplo... \n", - "2 If my employer files an H-1B and it is selecte... \n", - "3 What is the process for upgrading from EB-3 to... \n", - "4 What is involved in the EB-3 to EB-2 porting p... \n", + "0 Can I begin the green card process if my H-1B ... \n", + "1 If I have a master's degree in engineering man... \n", + "2 If I have a master's degree in engineering man... \n", + "3 What is the eligibility and process for upgrad... \n", + "4 Can you explain the process for changing from ... \n", ".. ... \n", - "271 Does my wife qualify for EB2 processing as an ... \n", - "272 What is the process for my wife to apply for E... \n", - "273 Can my wife use her occupational therapist deg... \n", - "274 I have 3 years of experience in the IT field a... \n", - "275 I have 3 years of experience in IT and am abou... \n", + "268 What are the chances of my wife obtaining EB2 ... \n", + "269 Is it possible for my wife to get EB2 processi... \n", + "270 Do I have the qualifications to apply for an E... \n", + "271 If I have 3 years of IT experience and am work... \n", + "272 If I have 3 years of experience in IT and am f... \n", "\n", " _answer \n", - "0 No, the employer can initiate the green card p... \n", - "1 Yes, the employer can begin the green card pro... \n", - "2 The employer can initiate the green card proce... \n", - "3 It is possible to upgrade from EB-3 to EB-2 as... \n", - "4 If the PERM was submitted as an EB-2, you can ... \n", + "0 Yes, your employer can initiate the green card... \n", + "1 Yes, the green card process can be initiated b... \n", + "2 Yes, the employer can begin the green card pro... \n", + "3 It is possible to upgrade from EB-3 to EB-2 st... \n", + "4 If the PERM was originally filed as an EB-2, i... \n", ".. ... \n", - "271 OT's do not have a special category like physi... \n", - "272 OT's do not have a special pathway like physic... \n", - "273 OT's do not have a dedicated category like phy... \n", - "274 I understand you are inquiring if you can appl... \n", - "275 I'm assuming you are asking if you can submit ... \n", + "268 Occupational therapists do not have a special ... \n", + "269 Occupational therapists do not have a separate... \n", + "270 Yes, you should have the qualifications to app... \n", + "271 Yes, you should be able to apply for an EB-2 g... \n", + "272 Yes, you should qualify for an EB-2 green card... \n", "\n", - "[276 rows x 2 columns]" + "[273 rows x 2 columns]" ] }, - "execution_count": 129, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -4222,7 +4381,7 @@ }, { "cell_type": "code", - "execution_count": 130, + "execution_count": 22, "id": "a81743fb-966a-4c40-8e32-3bd2f7f7ee4d", "metadata": {}, "outputs": [], @@ -4247,7 +4406,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/data_generation/immigration_gen_data2.ipynb b/example/data_generation/immigration_gen_data2.ipynb index 40e1d56..f8daaf6 100644 --- a/example/data_generation/immigration_gen_data2.ipynb +++ b/example/data_generation/immigration_gen_data2.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 1, "id": "730c285c-af52-4ba4-8cb2-1a9e468af547", "metadata": {}, "outputs": [ @@ -18,24 +18,30 @@ "name": "stdout", "output_type": "stream", "text": [ - "Requirement already satisfied: openai in /opt/conda/envs/pykoi/lib/python3.10/site-packages (0.27.8)\n", - "Requirement already satisfied: requests>=2.20 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (2.31.0)\n", - "Requirement already satisfied: tqdm in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (4.65.0)\n", - "Requirement already satisfied: aiohttp in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from openai) (3.8.5)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (3.2.0)\n", - "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (3.4)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (2.0.4)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests>=2.20->openai) (2023.7.22)\n", - "Requirement already satisfied: attrs>=17.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (23.1.0)\n", - "Requirement already satisfied: multidict<7.0,>=4.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (6.0.4)\n", - "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (4.0.2)\n", - "Requirement already satisfied: yarl<2.0,>=1.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.9.2)\n", - "Requirement already satisfied: frozenlist>=1.1.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.4.0)\n", - "Requirement already satisfied: aiosignal>=1.1.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->openai) (1.3.1)\n", - "Requirement already satisfied: clean-text in /opt/conda/envs/pykoi/lib/python3.10/site-packages (0.6.0)\n", - "Requirement already satisfied: emoji<2.0.0,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from clean-text) (1.7.0)\n", - "Requirement already satisfied: ftfy<7.0,>=6.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from clean-text) (6.1.1)\n", - "Requirement already satisfied: wcwidth>=0.2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ftfy<7.0,>=6.0->clean-text) (0.2.6)\n" + "Requirement already satisfied: openai in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (1.6.0)\n", + "Requirement already satisfied: anyio<5,>=3.5.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (3.7.1)\n", + "Requirement already satisfied: distro<2,>=1.7.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.8.0)\n", + "Requirement already satisfied: httpx<1,>=0.23.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (0.26.0)\n", + "Requirement already satisfied: pydantic<3,>=1.9.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.10.11)\n", + "Requirement already satisfied: sniffio in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (1.3.0)\n", + "Requirement already satisfied: tqdm>4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (4.66.1)\n", + "Requirement already satisfied: typing-extensions<5,>=4.7 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from openai) (4.9.0)\n", + "Requirement already satisfied: idna>=2.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai) (3.6)\n", + "Requirement already satisfied: exceptiongroup in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from anyio<5,>=3.5.0->openai) (1.2.0)\n", + "Requirement already satisfied: certifi in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpx<1,>=0.23.0->openai) (2023.11.17)\n", + "Requirement already satisfied: httpcore==1.* in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpx<1,>=0.23.0->openai) (1.0.2)\n", + "Requirement already satisfied: h11<0.15,>=0.13 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->openai) (0.14.0)\n", + "Requirement already satisfied: clean-text in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (0.6.0)\n", + "Requirement already satisfied: emoji<2.0.0,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from clean-text) (1.7.0)\n", + "Requirement already satisfied: ftfy<7.0,>=6.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from clean-text) (6.1.1)\n", + "Requirement already satisfied: wcwidth>=0.2.5 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ftfy<7.0,>=6.0->clean-text) (0.2.6)\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Since the GPL-licensed package `unidecode` is not installed, using Python's `unicodedata` package which yields worse results.\n" ] } ], @@ -55,7 +61,6 @@ "import json\n", "import tqdm\n", "import copy\n", - "import openai\n", "import pandas as pd\n", "\n", "from typing import Optional, Sequence, Union\n", @@ -63,10 +68,7 @@ "import nltk\n", "from nltk.corpus import stopwords\n", "from nltk.stem import SnowballStemmer\n", - "from nltk.tokenize import word_tokenize\n", - "\n", - "# from openai import openai_object\n", - "openai.api_key = \"\"" + "from nltk.tokenize import word_tokenize" ] }, { @@ -87,7 +89,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 2, "id": "151b55a5-7ca4-404f-94ac-8c39a0bdaa12", "metadata": {}, "outputs": [], @@ -108,7 +110,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 3, "id": "5d61054c-3a80-4bec-bc79-b6a83a411094", "metadata": {}, "outputs": [], @@ -150,12 +152,12 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 4, "id": "32865211-51a8-42f5-94bc-63dc78bc6a0d", "metadata": {}, "outputs": [], "source": [ - "context = context.lower() # Lowercase \n", + "context = context.lower() # Lowercase\n", "context = context.strip() # Remove leading/trailing whitespace\n", "context = re.sub(r'[ \\t]+', ' ', context) # Remove extra space and tabs while MAINTAINING NEW LINE CHARACTERS\n", "context = re.compile('<.*?>').sub('', context) # Remove HTML tags/markups:\n", @@ -166,7 +168,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 5, "id": "164e5080-5023-491a-ab53-82269aeaf7ab", "metadata": {}, "outputs": [ @@ -187,7 +189,7 @@ " 'whereas the international center will file both the labor certification and i-140 (unless the petition as a whole is assigned to retained counsel), the adjustment of status application and related applications (advance parole and ead) are filed by retained counsel only.']" ] }, - "execution_count": 42, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -206,7 +208,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 6, "id": "92f7f2c7-6d2a-43f9-a748-de849019dc05", "metadata": {}, "outputs": [ @@ -214,161 +216,253 @@ "name": "stdout", "output_type": "stream", "text": [ - "Requirement already satisfied: lmqg in /opt/conda/envs/pykoi/lib/python3.10/site-packages (0.1.1)\n", - "Requirement already satisfied: psutil in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (5.9.5)\n", - "Requirement already satisfied: pytextrank in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.2.5)\n", - "Requirement already satisfied: torch in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.0.1)\n", - "Requirement already satisfied: tqdm in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (4.65.0)\n", - "Requirement already satisfied: requests in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.31.0)\n", - "Requirement already satisfied: pandas in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.0.3)\n", - "Requirement already satisfied: numpy in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (1.25.2)\n", - "Requirement already satisfied: transformers>=4.26.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (4.31.0)\n", - "Requirement already satisfied: huggingface-hub>=0.12.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.16.4)\n", - "Requirement already satisfied: sentencepiece in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.1.99)\n", - "Requirement already satisfied: datasets in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.13.1)\n", - "Requirement already satisfied: spacy in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.7.0)\n", - "Requirement already satisfied: sudachipy in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.6.7)\n", - "Requirement already satisfied: sudachidict-core in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (20230927)\n", - "Requirement already satisfied: bert-score in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.3.13)\n", - "Requirement already satisfied: pyemd in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (1.0.0)\n", - "Requirement already satisfied: evaluate in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.4.0)\n", - "Requirement already satisfied: wandb in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.15.11)\n", - "Requirement already satisfied: ray in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.7.0)\n", - "Requirement already satisfied: nltk in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.8.1)\n", - "Requirement already satisfied: accelerate in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.21.0)\n", - "Requirement already satisfied: filelock in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (3.12.2)\n", - "Requirement already satisfied: fsspec in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (2023.6.0)\n", - "Requirement already satisfied: pyyaml>=5.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (6.0.1)\n", - "Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (4.7.1)\n", - "Requirement already satisfied: packaging>=20.9 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (23.1)\n", - "Requirement already satisfied: regex!=2019.12.17 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from transformers>=4.26.1->lmqg) (2023.6.3)\n", - "Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from transformers>=4.26.1->lmqg) (0.13.3)\n", - "Requirement already satisfied: safetensors>=0.3.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from transformers>=4.26.1->lmqg) (0.3.1)\n", - "Requirement already satisfied: sympy in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (1.12)\n", - "Requirement already satisfied: networkx in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (3.1)\n", - "Requirement already satisfied: jinja2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (3.1.2)\n", - "Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.7.99)\n", - "Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.7.99)\n", - "Requirement already satisfied: nvidia-cuda-cupti-cu11==11.7.101 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.7.101)\n", - "Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (8.5.0.96)\n", - "Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.10.3.66)\n", - "Requirement already satisfied: nvidia-cufft-cu11==10.9.0.58 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (10.9.0.58)\n", - "Requirement already satisfied: nvidia-curand-cu11==10.2.10.91 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (10.2.10.91)\n", - "Requirement already satisfied: nvidia-cusolver-cu11==11.4.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.4.0.1)\n", - "Requirement already satisfied: nvidia-cusparse-cu11==11.7.4.91 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.7.4.91)\n", - "Requirement already satisfied: nvidia-nccl-cu11==2.14.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (2.14.3)\n", - "Requirement already satisfied: nvidia-nvtx-cu11==11.7.91 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (11.7.91)\n", - "Requirement already satisfied: triton==2.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (2.0.0)\n", - "Requirement already satisfied: setuptools in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->lmqg) (68.0.0)\n", - "Requirement already satisfied: wheel in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->lmqg) (0.41.1)\n", - "Requirement already satisfied: cmake in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from triton==2.0.0->torch->lmqg) (3.27.1)\n", - "Requirement already satisfied: lit in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from triton==2.0.0->torch->lmqg) (16.0.6)\n", - "Requirement already satisfied: matplotlib in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from bert-score->lmqg) (3.8.0)\n", - "Requirement already satisfied: python-dateutil>=2.8.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2.8.2)\n", - "Requirement already satisfied: pytz>=2020.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2023.3)\n", - "Requirement already satisfied: tzdata>=2022.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2023.3)\n", - "Requirement already satisfied: pyarrow>=8.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (12.0.1)\n", - "Requirement already satisfied: dill<0.3.7,>=0.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (0.3.6)\n", - "Requirement already satisfied: xxhash in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (3.3.0)\n", - "Requirement already satisfied: multiprocess in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (0.70.14)\n", - "Requirement already satisfied: aiohttp in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (3.8.5)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (3.2.0)\n", - "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (3.4)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (2.0.4)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (2023.7.22)\n", - "Requirement already satisfied: responses<0.19 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from evaluate->lmqg) (0.18.0)\n", - "Requirement already satisfied: click in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from nltk->lmqg) (8.1.6)\n", - "Requirement already satisfied: joblib in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from nltk->lmqg) (1.3.1)\n", - "Requirement already satisfied: graphviz>=0.13 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (0.20.1)\n", - "Requirement already satisfied: icecream>=2.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (2.1.3)\n", - "Requirement already satisfied: pygments>=2.7.4 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (2.16.1)\n", - "Requirement already satisfied: scipy>=1.7 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (1.11.1)\n", - "Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.0.12)\n", - "Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.0.5)\n", - "Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.0.10)\n", - "Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.0.8)\n", - "Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.0.9)\n", - "Requirement already satisfied: thinc<8.3.0,>=8.1.8 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (8.2.1)\n", - "Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.1.2)\n", - "Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.4.8)\n", - "Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.0.10)\n", - "Requirement already satisfied: weasel<0.4.0,>=0.1.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.3.1)\n", - "Requirement already satisfied: typer<0.10.0,>=0.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.7.0)\n", - "Requirement already satisfied: pathy>=0.10.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.10.2)\n", - "Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (6.4.0)\n", - "Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.10.11)\n", - "Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.3.0)\n", - "Requirement already satisfied: jsonschema in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (4.19.0)\n", - "Requirement already satisfied: msgpack<2.0.0,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.0.5)\n", - "Requirement already satisfied: protobuf!=3.19.5,>=3.15.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (4.23.4)\n", - "Requirement already satisfied: aiosignal in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.3.1)\n", - "Requirement already satisfied: frozenlist in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.4.0)\n", - "Requirement already satisfied: tensorboardX>=1.9 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (2.6.2.2)\n", - "Requirement already satisfied: GitPython!=3.1.29,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (3.1.37)\n", - "Requirement already satisfied: sentry-sdk>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.31.0)\n", - "Requirement already satisfied: docker-pycreds>=0.4.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (0.4.0)\n", - "Requirement already satisfied: pathtools in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (0.1.2)\n", - "Requirement already satisfied: setproctitle in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.3.2)\n", - "Requirement already satisfied: appdirs>=1.4.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.4.4)\n", - "Requirement already satisfied: six>=1.4.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from docker-pycreds>=0.4.0->wandb->lmqg) (1.16.0)\n", - "Requirement already satisfied: attrs>=17.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (23.1.0)\n", - "Requirement already satisfied: multidict<7.0,>=4.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (6.0.4)\n", - "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (4.0.2)\n", - "Requirement already satisfied: yarl<2.0,>=1.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (1.9.2)\n", - "Requirement already satisfied: gitdb<5,>=4.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from GitPython!=3.1.29,>=1.0.0->wandb->lmqg) (4.0.10)\n", - "Requirement already satisfied: colorama>=0.3.9 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (0.4.6)\n", - "Requirement already satisfied: executing>=0.3.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (1.2.0)\n", - "Requirement already satisfied: asttokens>=2.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (2.2.1)\n", - "Requirement already satisfied: contourpy>=1.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (1.1.1)\n", - "Requirement already satisfied: cycler>=0.10 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (0.12.0)\n", - "Requirement already satisfied: fonttools>=4.22.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (4.43.0)\n", - "Requirement already satisfied: kiwisolver>=1.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (1.4.5)\n", - "Requirement already satisfied: pillow>=6.2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (10.0.1)\n", - "Requirement already satisfied: pyparsing>=2.3.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (3.1.1)\n", - "Requirement already satisfied: blis<0.8.0,>=0.7.8 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy->lmqg) (0.7.11)\n", - "Requirement already satisfied: confection<1.0.0,>=0.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy->lmqg) (0.1.3)\n", - "Requirement already satisfied: cloudpathlib<0.16.0,>=0.7.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from weasel<0.4.0,>=0.1.0->spacy->lmqg) (0.15.1)\n", - "Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from jinja2->torch->lmqg) (2.1.3)\n", - "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (2023.7.1)\n", - "Requirement already satisfied: referencing>=0.28.4 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (0.30.2)\n", - "Requirement already satisfied: rpds-py>=0.7.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (0.9.2)\n", - "Requirement already satisfied: mpmath>=0.19 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from sympy->torch->lmqg) (1.3.0)\n", - "Requirement already satisfied: smmap<6,>=3.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->GitPython!=3.1.29,>=1.0.0->wandb->lmqg) (5.0.1)\n", - "Collecting en-core-web-sm==3.7.0\n", - " Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.0/en_core_web_sm-3.7.0-py3-none-any.whl (12.8 MB)\n", - "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.8/12.8 MB\u001b[0m \u001b[31m97.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m0:01\u001b[0m01\u001b[0m\n", - "\u001b[?25hRequirement already satisfied: spacy<3.8.0,>=3.7.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from en-core-web-sm==3.7.0) (3.7.0)\n", - "Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.0.12)\n", - "Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (1.0.5)\n", - "Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (1.0.10)\n", - "Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.0.8)\n", - "Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.0.9)\n", - "Requirement already satisfied: thinc<8.3.0,>=8.1.8 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (8.2.1)\n", - "Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (1.1.2)\n", - "Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.4.8)\n", - "Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.0.10)\n", - "Requirement already satisfied: weasel<0.4.0,>=0.1.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.3.1)\n", - "Requirement already satisfied: typer<0.10.0,>=0.3.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.7.0)\n", - "Requirement already satisfied: pathy>=0.10.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.10.2)\n", - "Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (6.4.0)\n", - "Requirement already satisfied: tqdm<5.0.0,>=4.38.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (4.65.0)\n", - "Requirement already satisfied: requests<3.0.0,>=2.13.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.31.0)\n", - "Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (1.10.11)\n", - "Requirement already satisfied: jinja2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.1.2)\n", - "Requirement already satisfied: setuptools in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (68.0.0)\n", - "Requirement already satisfied: packaging>=20.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (23.1)\n", - "Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.3.0)\n", - "Requirement already satisfied: numpy>=1.19.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (1.25.2)\n", - "Requirement already satisfied: typing-extensions>=4.2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (4.7.1)\n", - "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.2.0)\n", - "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (3.4)\n", - "Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.0.4)\n", - "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2023.7.22)\n", - "Requirement already satisfied: blis<0.8.0,>=0.7.8 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.7.11)\n", - "Requirement already satisfied: confection<1.0.0,>=0.0.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.1.3)\n", - "Requirement already satisfied: click<9.0.0,>=7.1.1 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from typer<0.10.0,>=0.3.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (8.1.6)\n", - "Requirement already satisfied: cloudpathlib<0.16.0,>=0.7.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from weasel<0.4.0,>=0.1.0->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (0.15.1)\n", - "Requirement already satisfied: MarkupSafe>=2.0 in /opt/conda/envs/pykoi/lib/python3.10/site-packages (from jinja2->spacy<3.8.0,>=3.7.0->en-core-web-sm==3.7.0) (2.1.3)\n", + "Requirement already satisfied: lmqg in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (0.1.1)\n", + "Requirement already satisfied: psutil in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (5.9.7)\n", + "Requirement already satisfied: pytextrank in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.2.5)\n", + "Collecting torch (from lmqg)\n", + " Obtaining dependency information for torch from https://files.pythonhosted.org/packages/e3/43/ea958505875b22961e1277587f66b79f9e1f9d97d7998850ed089ae0d0bd/torch-2.1.2-cp310-none-macosx_11_0_arm64.whl.metadata\n", + " Downloading torch-2.1.2-cp310-none-macosx_11_0_arm64.whl.metadata (25 kB)\n", + "Requirement already satisfied: tqdm in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (4.66.1)\n", + "Requirement already satisfied: requests in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.31.0)\n", + "Requirement already satisfied: pandas in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.0.3)\n", + "Requirement already satisfied: numpy in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (1.26.2)\n", + "Collecting transformers>=4.26.1 (from lmqg)\n", + " Obtaining dependency information for transformers>=4.26.1 from https://files.pythonhosted.org/packages/20/0a/739426a81f7635b422fbe6cb8d1d99d1235579a6ac8024c13d743efa6847/transformers-4.36.2-py3-none-any.whl.metadata\n", + " Downloading transformers-4.36.2-py3-none-any.whl.metadata (126 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m126.8/126.8 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: huggingface-hub>=0.12.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.17.3)\n", + "Collecting sentencepiece (from lmqg)\n", + " Using cached sentencepiece-0.1.99-cp310-cp310-macosx_11_0_arm64.whl (1.2 MB)\n", + "Collecting datasets (from lmqg)\n", + " Obtaining dependency information for datasets from https://files.pythonhosted.org/packages/e2/cf/db41e572d7ed958e8679018f8190438ef700aeb501b62da9e1eed9e4d69a/datasets-2.15.0-py3-none-any.whl.metadata\n", + " Downloading datasets-2.15.0-py3-none-any.whl.metadata (20 kB)\n", + "Requirement already satisfied: spacy in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.7.0)\n", + "Requirement already satisfied: sudachipy in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.6.7)\n", + "Requirement already satisfied: sudachidict-core in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (20230927)\n", + "Requirement already satisfied: bert-score in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.3.13)\n", + "Requirement already satisfied: pyemd in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (1.0.0)\n", + "Collecting evaluate (from lmqg)\n", + " Obtaining dependency information for evaluate from https://files.pythonhosted.org/packages/70/63/7644a1eb7b0297e585a6adec98ed9e575309bb973c33b394dae66bc35c69/evaluate-0.4.1-py3-none-any.whl.metadata\n", + " Using cached evaluate-0.4.1-py3-none-any.whl.metadata (9.4 kB)\n", + "Requirement already satisfied: wandb in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (0.15.12)\n", + "Requirement already satisfied: ray in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (2.7.1)\n", + "Requirement already satisfied: nltk in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from lmqg) (3.8.1)\n", + "Collecting accelerate (from lmqg)\n", + " Obtaining dependency information for accelerate from https://files.pythonhosted.org/packages/f7/fc/c55e5a2da345c9a24aa2e1e0f60eb2ca290b6a41be82da03a6d4baec4f99/accelerate-0.25.0-py3-none-any.whl.metadata\n", + " Downloading accelerate-0.25.0-py3-none-any.whl.metadata (18 kB)\n", + "Requirement already satisfied: filelock in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (3.13.1)\n", + "Requirement already satisfied: fsspec in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (2023.6.0)\n", + "Requirement already satisfied: pyyaml>=5.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (6.0.1)\n", + "Requirement already satisfied: typing-extensions>=3.7.4.3 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (4.9.0)\n", + "Requirement already satisfied: packaging>=20.9 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from huggingface-hub>=0.12.0->lmqg) (23.1)\n", + "Collecting huggingface-hub>=0.12.0 (from lmqg)\n", + " Obtaining dependency information for huggingface-hub>=0.12.0 from https://files.pythonhosted.org/packages/a0/0a/02ac0ae1047d97769003ff4fb8e6717024f3f174a5d13257415aa09e13d9/huggingface_hub-0.20.1-py3-none-any.whl.metadata\n", + " Downloading huggingface_hub-0.20.1-py3-none-any.whl.metadata (12 kB)\n", + "Requirement already satisfied: regex!=2019.12.17 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from transformers>=4.26.1->lmqg) (2023.10.3)\n", + "Requirement already satisfied: tokenizers<0.19,>=0.14 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from transformers>=4.26.1->lmqg) (0.14.1)\n", + "Collecting safetensors>=0.3.1 (from transformers>=4.26.1->lmqg)\n", + " Obtaining dependency information for safetensors>=0.3.1 from https://files.pythonhosted.org/packages/76/b8/0f61d8db167a6071cccce0b12a5db6fcfc4a16fbdf432de1c23c4ef97e79/safetensors-0.4.1-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Downloading safetensors-0.4.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (3.8 kB)\n", + "Requirement already satisfied: sympy in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from torch->lmqg) (1.12)\n", + "Collecting networkx (from torch->lmqg)\n", + " Obtaining dependency information for networkx from https://files.pythonhosted.org/packages/d5/f0/8fbc882ca80cf077f1b246c0e3c3465f7f415439bdea6b899f6b19f61f70/networkx-3.2.1-py3-none-any.whl.metadata\n", + " Downloading networkx-3.2.1-py3-none-any.whl.metadata (5.2 kB)\n", + "Collecting jinja2 (from torch->lmqg)\n", + " Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)\n", + "Requirement already satisfied: matplotlib in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from bert-score->lmqg) (3.8.0)\n", + "Requirement already satisfied: python-dateutil>=2.8.2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2.8.2)\n", + "Requirement already satisfied: pytz>=2020.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2023.3.post1)\n", + "Requirement already satisfied: tzdata>=2022.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pandas->lmqg) (2023.3)\n", + "Collecting pyarrow>=8.0.0 (from datasets->lmqg)\n", + " Obtaining dependency information for pyarrow>=8.0.0 from https://files.pythonhosted.org/packages/c6/97/37f4c3cce6d268cc7593b0aa7dbb83bfe660e617b19a4d7bcd1ba6d6d4f0/pyarrow-14.0.2-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Downloading pyarrow-14.0.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (3.0 kB)\n", + "Collecting pyarrow-hotfix (from datasets->lmqg)\n", + " Obtaining dependency information for pyarrow-hotfix from https://files.pythonhosted.org/packages/e4/f4/9ec2222f5f5f8ea04f66f184caafd991a39c8782e31f5b0266f101cb68ca/pyarrow_hotfix-0.6-py3-none-any.whl.metadata\n", + " Downloading pyarrow_hotfix-0.6-py3-none-any.whl.metadata (3.6 kB)\n", + "Collecting dill<0.3.8,>=0.3.0 (from datasets->lmqg)\n", + " Obtaining dependency information for dill<0.3.8,>=0.3.0 from https://files.pythonhosted.org/packages/f5/3a/74a29b11cf2cdfcd6ba89c0cecd70b37cd1ba7b77978ce611eb7a146a832/dill-0.3.7-py3-none-any.whl.metadata\n", + " Using cached dill-0.3.7-py3-none-any.whl.metadata (9.9 kB)\n", + "Collecting xxhash (from datasets->lmqg)\n", + " Obtaining dependency information for xxhash from https://files.pythonhosted.org/packages/ad/7f/dfdf25e416b67970e89d7b85b0e6a4860ec8a227544cb5db069617cc323e/xxhash-3.4.1-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Using cached xxhash-3.4.1-cp310-cp310-macosx_11_0_arm64.whl.metadata (12 kB)\n", + "Collecting multiprocess (from datasets->lmqg)\n", + " Obtaining dependency information for multiprocess from https://files.pythonhosted.org/packages/35/a8/36d8d7b3e46b377800d8dec47891cdf05842d1a2366909ae4a0c89fbc5e6/multiprocess-0.70.15-py310-none-any.whl.metadata\n", + " Using cached multiprocess-0.70.15-py310-none-any.whl.metadata (7.2 kB)\n", + "Requirement already satisfied: aiohttp in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from datasets->lmqg) (3.9.1)\n", + "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (3.3.2)\n", + "Requirement already satisfied: idna<4,>=2.5 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (3.6)\n", + "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (2.1.0)\n", + "Requirement already satisfied: certifi>=2017.4.17 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests->lmqg) (2023.11.17)\n", + "Collecting responses<0.19 (from evaluate->lmqg)\n", + " Using cached responses-0.18.0-py3-none-any.whl (38 kB)\n", + "Requirement already satisfied: click in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from nltk->lmqg) (8.1.7)\n", + "Requirement already satisfied: joblib in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from nltk->lmqg) (1.3.2)\n", + "Requirement already satisfied: graphviz>=0.13 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (0.20.1)\n", + "Requirement already satisfied: icecream>=2.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (2.1.3)\n", + "Requirement already satisfied: pygments>=2.7.4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (2.16.1)\n", + "Requirement already satisfied: scipy>=1.7 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pytextrank->lmqg) (1.11.1)\n", + "Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.0.12)\n", + "Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.0.5)\n", + "Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.0.10)\n", + "Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.0.8)\n", + "Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.0.9)\n", + "Requirement already satisfied: thinc<8.3.0,>=8.1.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (8.2.1)\n", + "Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.1.2)\n", + "Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.4.8)\n", + "Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (2.0.10)\n", + "Requirement already satisfied: weasel<0.4.0,>=0.1.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.3.3)\n", + "Requirement already satisfied: typer<0.10.0,>=0.3.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.9.0)\n", + "Requirement already satisfied: pathy>=0.10.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (0.10.3)\n", + "Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (6.4.0)\n", + "Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (1.10.11)\n", + "Requirement already satisfied: setuptools in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (69.0.2)\n", + "Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy->lmqg) (3.3.0)\n", + "Requirement already satisfied: jsonschema in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (4.19.0)\n", + "Requirement already satisfied: msgpack<2.0.0,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.0.5)\n", + "Requirement already satisfied: protobuf!=3.19.5,>=3.15.3 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (4.25.1)\n", + "Requirement already satisfied: aiosignal in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.3.1)\n", + "Requirement already satisfied: frozenlist in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (1.4.1)\n", + "Requirement already satisfied: tensorboardX>=1.9 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from ray->lmqg) (2.6.2.2)\n", + "Requirement already satisfied: GitPython!=3.1.29,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (3.1.40)\n", + "Requirement already satisfied: sentry-sdk>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.39.1)\n", + "Requirement already satisfied: docker-pycreds>=0.4.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (0.4.0)\n", + "Requirement already satisfied: pathtools in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (0.1.2)\n", + "Requirement already satisfied: setproctitle in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.3.3)\n", + "Requirement already satisfied: appdirs>=1.4.3 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from wandb->lmqg) (1.4.4)\n", + "Requirement already satisfied: six>=1.4.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from docker-pycreds>=0.4.0->wandb->lmqg) (1.16.0)\n", + "Requirement already satisfied: attrs>=17.3.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (23.1.0)\n", + "Requirement already satisfied: multidict<7.0,>=4.5 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (6.0.4)\n", + "Requirement already satisfied: yarl<2.0,>=1.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (1.9.4)\n", + "Requirement already satisfied: async-timeout<5.0,>=4.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from aiohttp->datasets->lmqg) (4.0.3)\n", + "Requirement already satisfied: gitdb<5,>=4.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from GitPython!=3.1.29,>=1.0.0->wandb->lmqg) (4.0.11)\n", + "Requirement already satisfied: colorama>=0.3.9 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (0.4.6)\n", + "Requirement already satisfied: executing>=0.3.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (1.2.0)\n", + "Requirement already satisfied: asttokens>=2.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from icecream>=2.1->pytextrank->lmqg) (2.2.1)\n", + "Collecting scipy>=1.7 (from pytextrank->lmqg)\n", + " Obtaining dependency information for scipy>=1.7 from https://files.pythonhosted.org/packages/de/0d/4fa68303568c70fd56fbf40668b6c6807cfee4cad975f07d80bdd26d013e/scipy-1.11.4-cp310-cp310-macosx_12_0_arm64.whl.metadata\n", + " Downloading scipy-1.11.4-cp310-cp310-macosx_12_0_arm64.whl.metadata (112 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m112.9/112.9 kB\u001b[0m \u001b[31m12.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: contourpy>=1.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (1.1.1)\n", + "Requirement already satisfied: cycler>=0.10 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (0.12.1)\n", + "Requirement already satisfied: fonttools>=4.22.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (4.43.1)\n", + "Requirement already satisfied: kiwisolver>=1.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (1.4.5)\n", + "Collecting pillow>=6.2.0 (from matplotlib->bert-score->lmqg)\n", + " Obtaining dependency information for pillow>=6.2.0 from https://files.pythonhosted.org/packages/92/a4/c164eb1f692585982e1aa9bf2c1126da9721c2193cd1aba1eaf46fe7f1d7/Pillow-10.1.0-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Using cached Pillow-10.1.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (9.5 kB)\n", + "Requirement already satisfied: pyparsing>=2.3.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from matplotlib->bert-score->lmqg) (3.1.1)\n", + "Requirement already satisfied: blis<0.8.0,>=0.7.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy->lmqg) (0.7.11)\n", + "Requirement already satisfied: confection<1.0.0,>=0.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy->lmqg) (0.1.3)\n", + "INFO: pip is looking at multiple versions of tokenizers to determine which version is compatible with other requirements. This could take a while.\n", + "Collecting tokenizers<0.19,>=0.14 (from transformers>=4.26.1->lmqg)\n", + " Obtaining dependency information for tokenizers<0.19,>=0.14 from https://files.pythonhosted.org/packages/74/4a/119371191a5290ee5169dded0c2b542668a2c86798511c7045b480f0c7ed/tokenizers-0.15.0-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Downloading tokenizers-0.15.0-cp310-cp310-macosx_11_0_arm64.whl.metadata (6.7 kB)\n", + "Requirement already satisfied: cloudpathlib<0.17.0,>=0.7.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from weasel<0.4.0,>=0.1.0->spacy->lmqg) (0.16.0)\n", + "Collecting MarkupSafe>=2.0 (from jinja2->torch->lmqg)\n", + " Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/20/1d/713d443799d935f4d26a4f1510c9e61b1d288592fb869845e5cc92a1e055/MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl.metadata\n", + " Using cached MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl.metadata (3.0 kB)\n", + "Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (2023.7.1)\n", + "Requirement already satisfied: referencing>=0.28.4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (0.30.2)\n", + "Requirement already satisfied: rpds-py>=0.7.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from jsonschema->ray->lmqg) (0.9.2)\n", + "Requirement already satisfied: mpmath>=0.19 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from sympy->torch->lmqg) (1.3.0)\n", + "Requirement already satisfied: smmap<6,>=3.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from gitdb<5,>=4.0.1->GitPython!=3.1.29,>=1.0.0->wandb->lmqg) (5.0.1)\n", + "Downloading transformers-4.36.2-py3-none-any.whl (8.2 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m8.2/8.2 MB\u001b[0m \u001b[31m48.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m0:01\u001b[0m:01\u001b[0m\n", + "\u001b[?25hDownloading huggingface_hub-0.20.1-py3-none-any.whl (330 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m330.1/330.1 kB\u001b[0m \u001b[31m32.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading accelerate-0.25.0-py3-none-any.whl (265 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m265.7/265.7 kB\u001b[0m \u001b[31m33.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading torch-2.1.2-cp310-none-macosx_11_0_arm64.whl (59.6 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m59.6/59.6 MB\u001b[0m \u001b[31m36.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m[36m0:00:01\u001b[0m\n", + "\u001b[?25hDownloading datasets-2.15.0-py3-none-any.whl (521 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m521.2/521.2 kB\u001b[0m \u001b[31m33.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hUsing cached evaluate-0.4.1-py3-none-any.whl (84 kB)\n", + "Using cached dill-0.3.7-py3-none-any.whl (115 kB)\n", + "Downloading pyarrow-14.0.2-cp310-cp310-macosx_11_0_arm64.whl (24.0 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m24.0/24.0 MB\u001b[0m \u001b[31m57.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m[36m0:00:01\u001b[0m[36m0:00:01\u001b[0m:01\u001b[0m\n", + "\u001b[?25hDownloading safetensors-0.4.1-cp310-cp310-macosx_11_0_arm64.whl (426 kB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m426.2/426.2 kB\u001b[0m \u001b[31m30.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading scipy-1.11.4-cp310-cp310-macosx_12_0_arm64.whl (29.8 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m29.8/29.8 MB\u001b[0m \u001b[31m55.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m[36m0:00:01\u001b[0m\n", + "\u001b[?25hDownloading tokenizers-0.15.0-cp310-cp310-macosx_11_0_arm64.whl (2.5 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.5/2.5 MB\u001b[0m \u001b[31m54.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m\n", + "\u001b[?25hUsing cached multiprocess-0.70.15-py310-none-any.whl (134 kB)\n", + "Downloading networkx-3.2.1-py3-none-any.whl (1.6 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m47.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hDownloading pyarrow_hotfix-0.6-py3-none-any.whl (7.9 kB)\n", + "Using cached xxhash-3.4.1-cp310-cp310-macosx_11_0_arm64.whl (30 kB)\n", + "Using cached MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl (17 kB)\n", + "Using cached Pillow-10.1.0-cp310-cp310-macosx_11_0_arm64.whl (3.3 MB)\n", + "Installing collected packages: sentencepiece, xxhash, scipy, safetensors, pyarrow-hotfix, pyarrow, pillow, networkx, MarkupSafe, dill, responses, multiprocess, jinja2, huggingface-hub, torch, tokenizers, transformers, datasets, accelerate, evaluate\n", + " Attempting uninstall: scipy\n", + " Found existing installation: scipy 1.11.1\n", + " Uninstalling scipy-1.11.1:\n", + " Successfully uninstalled scipy-1.11.1\n", + " Attempting uninstall: huggingface-hub\n", + " Found existing installation: huggingface-hub 0.17.3\n", + " Uninstalling huggingface-hub-0.17.3:\n", + " Successfully uninstalled huggingface-hub-0.17.3\n", + " Attempting uninstall: tokenizers\n", + " Found existing installation: tokenizers 0.14.1\n", + " Uninstalling tokenizers-0.14.1:\n", + " Successfully uninstalled tokenizers-0.14.1\n", + "Successfully installed MarkupSafe-2.1.3 accelerate-0.25.0 datasets-2.15.0 dill-0.3.7 evaluate-0.4.1 huggingface-hub-0.20.1 jinja2-3.1.2 multiprocess-0.70.15 networkx-3.2.1 pillow-10.1.0 pyarrow-14.0.2 pyarrow-hotfix-0.6 responses-0.18.0 safetensors-0.4.1 scipy-1.11.4 sentencepiece-0.1.99 tokenizers-0.15.0 torch-2.1.2 transformers-4.36.2 xxhash-3.4.1\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", + " from .autonotebook import tqdm as notebook_tqdm\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collecting en-core-web-sm==3.7.1\n", + " Downloading https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl (12.8 MB)\n", + "\u001b[2K \u001b[38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m12.8/12.8 MB\u001b[0m \u001b[31m64.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0mm eta \u001b[36m0:00:01\u001b[0m[36m0:00:01\u001b[0m\n", + "\u001b[?25hCollecting spacy<3.8.0,>=3.7.2 (from en-core-web-sm==3.7.1)\n", + " Obtaining dependency information for spacy<3.8.0,>=3.7.2 from https://files.pythonhosted.org/packages/df/d2/440527cb9099be67ef0e121c71feee1f5a59c956cb10d35afdf4abc35ece/spacy-3.7.2-cp310-cp310-macosx_11_0_arm64.whl.metadata\n", + " Using cached spacy-3.7.2-cp310-cp310-macosx_11_0_arm64.whl.metadata (25 kB)\n", + "Requirement already satisfied: spacy-legacy<3.1.0,>=3.0.11 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.0.12)\n", + "Requirement already satisfied: spacy-loggers<2.0.0,>=1.0.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (1.0.5)\n", + "Requirement already satisfied: murmurhash<1.1.0,>=0.28.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (1.0.10)\n", + "Requirement already satisfied: cymem<2.1.0,>=2.0.2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.0.8)\n", + "Requirement already satisfied: preshed<3.1.0,>=3.0.2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.0.9)\n", + "Requirement already satisfied: thinc<8.3.0,>=8.1.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (8.2.1)\n", + "Requirement already satisfied: wasabi<1.2.0,>=0.9.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (1.1.2)\n", + "Requirement already satisfied: srsly<3.0.0,>=2.4.3 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.4.8)\n", + "Requirement already satisfied: catalogue<2.1.0,>=2.0.6 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.0.10)\n", + "Requirement already satisfied: weasel<0.4.0,>=0.1.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (0.3.3)\n", + "Requirement already satisfied: typer<0.10.0,>=0.3.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (0.9.0)\n", + "Requirement already satisfied: smart-open<7.0.0,>=5.2.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (6.4.0)\n", + "Requirement already satisfied: tqdm<5.0.0,>=4.38.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (4.66.1)\n", + "Requirement already satisfied: requests<3.0.0,>=2.13.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.31.0)\n", + "Requirement already satisfied: pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (1.10.11)\n", + "Requirement already satisfied: jinja2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.1.2)\n", + "Requirement already satisfied: setuptools in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (69.0.2)\n", + "Requirement already satisfied: packaging>=20.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (23.1)\n", + "Requirement already satisfied: langcodes<4.0.0,>=3.2.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.3.0)\n", + "Requirement already satisfied: numpy>=1.19.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (1.26.2)\n", + "Requirement already satisfied: typing-extensions>=4.2.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from pydantic!=1.8,!=1.8.1,<3.0.0,>=1.7.4->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (4.9.0)\n", + "Requirement already satisfied: charset-normalizer<4,>=2 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.3.2)\n", + "Requirement already satisfied: idna<4,>=2.5 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (3.6)\n", + "Requirement already satisfied: urllib3<3,>=1.21.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.1.0)\n", + "Requirement already satisfied: certifi>=2017.4.17 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from requests<3.0.0,>=2.13.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2023.11.17)\n", + "Requirement already satisfied: blis<0.8.0,>=0.7.8 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (0.7.11)\n", + "Requirement already satisfied: confection<1.0.0,>=0.0.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from thinc<8.3.0,>=8.1.8->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (0.1.3)\n", + "Requirement already satisfied: click<9.0.0,>=7.1.1 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from typer<0.10.0,>=0.3.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (8.1.7)\n", + "Requirement already satisfied: cloudpathlib<0.17.0,>=0.7.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from weasel<0.4.0,>=0.1.0->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (0.16.0)\n", + "Requirement already satisfied: MarkupSafe>=2.0 in /Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages (from jinja2->spacy<3.8.0,>=3.7.2->en-core-web-sm==3.7.1) (2.1.3)\n", + "Using cached spacy-3.7.2-cp310-cp310-macosx_11_0_arm64.whl (6.6 MB)\n", + "Installing collected packages: spacy, en-core-web-sm\n", + " Attempting uninstall: spacy\n", + " Found existing installation: spacy 3.7.0\n", + " Uninstalling spacy-3.7.0:\n", + " Successfully uninstalled spacy-3.7.0\n", + "Successfully installed en-core-web-sm-3.7.1 spacy-3.7.2\n", "\u001b[38;5;2m✔ Download and installation successful\u001b[0m\n", "You can now load the package via spacy.load('en_core_web_sm')\n" ] @@ -377,12 +471,16 @@ "name": "stderr", "output_type": "stream", "text": [ - "/opt/conda/envs/pykoi/lib/python3.10/site-packages/transformers/tokenization_utils_base.py:1714: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers.\n", + "/Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages/transformers/models/auto/tokenization_auto.py:690: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.\n", + " warnings.warn(\n", + "/Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py:1067: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.\n", " warnings.warn(\n", - "/opt/conda/envs/pykoi/lib/python3.10/site-packages/transformers/modeling_utils.py:2193: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers.\n", + "/Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages/transformers/modeling_utils.py:2759: FutureWarning: The `use_auth_token` argument is deprecated and will be removed in v5 of Transformers. Please use `token` instead.\n", " warnings.warn(\n", - "100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 1683.41it/s]\n", - "100%|███████████████████████████████████████████████████████████████████████████████████████████████████████| 31/31 [00:00<00:00, 1874.40it/s]\n" + "/Users/joseortiz/anaconda3/envs/pykoi/lib/python3.10/site-packages/spacy/util.py:910: UserWarning: [W095] Model 'en_core_web_sm' (3.7.1) was trained with spaCy v3.7.2 and may not be 100% compatible with the current version (3.7.0). If you see errors or degraded performance, download a newer compatible model or retrain your custom model with the current spaCy version. For more details and available updates, run: python -m spacy validate\n", + " warnings.warn(warn_msg)\n", + "100%|██████████| 31/31 [00:00<00:00, 1333.40it/s]\n", + "100%|██████████| 31/31 [00:00<00:00, 661.53it/s]\n" ] }, { @@ -423,8 +521,7 @@ " 'labor certification?',\n", " 'immigrant petition'),\n", " ('When is the filing of the i-140 the first step of the green card process?',\n", - " 'in cases where no labor certification is required (e.g. eb-1), the filing '\n", - " 'of the i-140 is the first step of the green card process.')],\n", + " 'in cases where no labor certification is required')],\n", " [('What can a foreign national apply for once the i-140 application has been '\n", " 'approved by uscis?',\n", " 'adjustment of status or obtaining an immigrant visa'),\n", @@ -482,11 +579,11 @@ "from pprint import pprint\n", "from lmqg import TransformersQG\n", "\n", - "# Download the en_core_web_sm model explicitly \n", + "# Download the en_core_web_sm model explicitly\n", "! python -m spacy download en_core_web_sm # spacy is a counterpart of nltk\n", "\n", "# initialize model\n", - "model = TransformersQG(model='lmqg/t5-base-squad-qg-ae', max_length=1024) # max length of a paragraph \n", + "model = TransformersQG(model='lmqg/t5-base-squad-qg-ae', max_length=1024) # max length of a paragraph\n", "# paragraph to generate pairs of question and answer\n", "\n", "context = context\n", @@ -504,7 +601,7 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 7, "id": "19e1e276-3def-4980-96fd-91a7ef9dbd4f", "metadata": {}, "outputs": [ @@ -522,7 +619,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": 8, "id": "b1bf02e9-281f-4cbf-bd50-6dfbc06bd2cf", "metadata": {}, "outputs": [ @@ -532,7 +629,7 @@ "31" ] }, - "execution_count": 45, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -552,7 +649,7 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 9, "id": "9393d02a-baa8-41df-a8ec-5523e0cfc371", "metadata": {}, "outputs": [], @@ -579,7 +676,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.12" + "version": "3.10.13" } }, "nbformat": 4, diff --git a/example/retrieval_qa/retrieval_qa_openai_demo.py b/example/retrieval_qa/retrieval_qa_openai_demo.py index e02fcf7..1cc96fe 100644 --- a/example/retrieval_qa/retrieval_qa_openai_demo.py +++ b/example/retrieval_qa/retrieval_qa_openai_demo.py @@ -1,14 +1,30 @@ -"""Demo for the retrieval_qa application.""" +""" +Demo for launching a retrieval_qa chatbot UI (with database) from an OpenAI model. + +- Prerequisites: + To run this jupyter notebook, you need a `pykoi` environment with the `rag` option. + You can follow [the installation guide](https://github.com/CambioML/pykoi/tree/install#option-1-rag-cpu) + to set up the environment. +- Run the demo: + 1. Enter your OpenAI API key a .env file in the `~/pykoi` directory with the name OPEN_API_KEY, e.g. + ``` + OPENAI_API_KEY=your_api_key + ``` + 2. On terminal and `~/pykoi` directory, run + ``` + python -m example.retrieval_qa.retrieval_qa_openai_demo + ``` +""" -import os import argparse +import os + from dotenv import load_dotenv + from pykoi import Application -from pykoi.retrieval import RetrievalFactory -from pykoi.retrieval import VectorDbFactory -from pykoi.component import Chatbot, Dashboard, RetrievalQA from pykoi.chat import RAGDatabase - +from pykoi.component import Chatbot, Dashboard, RetrievalQA +from pykoi.retrieval import RetrievalFactory, VectorDbFactory load_dotenv() @@ -22,9 +38,11 @@ def main(**kargs): # Creating a retrieval QA component # ##################################### # vector database + print("1. Creating a vector database...") vector_db = VectorDbFactory.create( model_source=MODEL_SOURCE, vector_db_name=kargs.get("vectordb"), **kargs ) + print("2. Vector database created.") # retrieval model with vector database retrieval_model = RetrievalFactory.create( @@ -32,7 +50,9 @@ def main(**kargs): ) # retrieval, chatbot, and dashboard pykoi components - retriever = RetrievalQA(retrieval_model=retrieval_model, vector_db=vector_db, feedback="rag") + retriever = RetrievalQA( + retrieval_model=retrieval_model, vector_db=vector_db, feedback="rag" + ) chatbot = Chatbot(None, feedback="rag", is_retrieval=True) dashboard = Dashboard(RAGDatabase(), feedback="rag") diff --git a/example/uniflow/uniflow_sft_demo.py b/example/uniflow/uniflow_sft_demo.py deleted file mode 100644 index b329dea..0000000 --- a/example/uniflow/uniflow_sft_demo.py +++ /dev/null @@ -1,44 +0,0 @@ -"""Demo for using uniflow to generate data for supervised fine tuning. - -python -m example.uniflow.uniflow_sft_demo -""" -import os -import pandas as pd - -from uniflow.flow.flow import Flow -from pykoi.rlhf import RLHFConfig -from pykoi.rlhf import SupervisedFinetuning -from pykoi.chat.db.constants import ( - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_VOTE_STATUS) - -CSV_FILENAME = "qd_immigration" -CSV_OUTPUT_SUFFIX = "-flow-output" - -# Load data -current_directory = os.getcwd() -qaa = pd.read_csv(f"{current_directory}/{CSV_FILENAME}.csv", encoding="utf8") - -# run flow -flow = Flow() -output_dict = flow(qaa) - -# save new data to csv -df = pd.DataFrame(output_dict["output"][0], columns=[ - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_VOTE_STATUS]) -df.to_csv(f"{current_directory}/{CSV_FILENAME}{CSV_OUTPUT_SUFFIX}.csv", index=False) - -# analyze the data -print("Flow save successful!") -print(df) -print(f"The output csv file {CSV_FILENAME}{CSV_OUTPUT_SUFFIX}.csv has {df.shape[0]} rows in total") - -# run supervised finetuning -config = RLHFConfig(base_model_path="databricks/dolly-v2-3b", dataset_type="local_csv", dataset_name=f"{CSV_FILENAME}{CSV_OUTPUT_SUFFIX}.csv") -rlhf_step1_sft = SupervisedFinetuning(config) -rlhf_step1_sft.train_and_save("./models/rlhf_step1_sft") diff --git a/pykoi/chat/llm/openai.py b/pykoi/chat/llm/openai.py index 6ea1ee5..b8d4a3d 100644 --- a/pykoi/chat/llm/openai.py +++ b/pykoi/chat/llm/openai.py @@ -1,5 +1,5 @@ """This module provides a wrapper for the OpenAI model.""" -import openai +from openai import OpenAI from pykoi.chat.llm.abs_llm import AbsLlm @@ -9,12 +9,12 @@ class OpenAIModel(AbsLlm): A class that wraps the OpenAI model for use in the LLMChain. Attributes: - _engine (str): The engine to use for the OpenAI model. + _model (str): The model to use for the OpenAI model. _max_tokens (int): The maximum number of tokens to generate. _temperature (float): The temperature to use for the OpenAI model. Methods: - __init__(self, api_key: str, engine: str, max_tokens: int, temperature: float): Initializes the OpenAI model. + __init__(self, model: str, max_tokens: int, temperature: float): Initializes the OpenAI model. predict(self, message: str): Predicts the next word based on the given message. """ @@ -22,9 +22,8 @@ class OpenAIModel(AbsLlm): def __init__( self, - api_key: str, name: str = None, - engine: str = "davinci", + model: str = "davinci", max_tokens: int = 100, temperature: float = 0.5, ): @@ -32,17 +31,16 @@ def __init__( Initializes the OpenAI model with the given parameters. Args: - api_key (str): The API key for the OpenAI model. name (str): The name of the model. Defaults to None. - engine (str, optional): The engine to use for the OpenAI model. Defaults to "davinci". + model (str, optional): The model to use for the OpenAI model. Defaults to "davinci". max_tokens (int, optional): The maximum number of tokens to generate. Defaults to 100. temperature (float, optional): The temperature to use for the OpenAI model. Defaults to 0.5. """ - openai.api_key = api_key - self._engine = engine + self._model = model self._max_tokens = max_tokens self._temperature = temperature self._name = name + self._client = OpenAI() super().__init__() @property @@ -52,7 +50,7 @@ def name(self): return "_".join( [ str(OpenAIModel.model_source), - str(self._engine), + str(self._model), str(self._max_tokens), str(self._temperature), ] @@ -70,8 +68,8 @@ def predict(self, message: str, num_of_response: int = 1): List[str]: List of response. """ prompt = f"Question: {message}\nAnswer:" - response = openai.Completion.create( - engine=self._engine, + response = self._client.completions.create( + model=self._model, prompt=prompt, max_tokens=self._max_tokens, n=num_of_response, diff --git a/pykoi/retrieval/llm/openai.py b/pykoi/retrieval/llm/openai.py index e0d9e7a..d5085c9 100644 --- a/pykoi/retrieval/llm/openai.py +++ b/pykoi/retrieval/llm/openai.py @@ -1,14 +1,13 @@ """OpenAI language model for retrieval""" import os - from typing import List +from dotenv import load_dotenv from langchain.chains import RetrievalQA -from langchain.llms import OpenAI +from langchain.chat_models import ChatOpenAI from pykoi.retrieval.llm.abs_llm import AbsLlm from pykoi.retrieval.vectordb.abs_vectordb import AbsVectorDb -from dotenv import load_dotenv # NOTE: Configure your MIN_DOCS as RAG_NUM_SOURCES in .env file. # Load environment variables from .env file @@ -28,10 +27,7 @@ def __init__(self, vector_db: AbsVectorDb): Initializes the OpenAIModel class. """ try: - self._llm = OpenAI( - model_name="gpt-4", - temperature=0, - max_tokens=500) + self._llm = ChatOpenAI(model_name="gpt-4", temperature=0, max_tokens=500) self._vector_db = vector_db.vector_db diff --git a/pyproject.toml b/pyproject.toml index c8df6cf..b7100b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,17 +10,17 @@ readme = "README.md" python = ">=3.9,<3.13" packaging = "23.1" fastapi = "0.100.0" -pydantic = "1.10.11" +pydantic = "2.5.2" starlette = "0.27.0" uvicorn = "0.23.1" scipy = "1.11.1" -openai = "0.27.8" +openai = "^1.2.4" passlib = "1.7.4" bcrypt = "4.0.1" posthog = "3.0.1" pynvml = "11.5.0" pandas = "2.0.3" -python-dotenv = "1.0.0" +python-dotenv = "^1.0.0" transformers = { version = "4.35.0", optional = true } einops = { version = "0.6.1", optional = true } @@ -29,7 +29,7 @@ bitsandbytes = { version = "0.40.2", optional = true } langchain = { version = "0.0.338", optional = true } scikit-learn = { version = "1.3.0", optional = true } -chromadb = { version = "0.3.26", optional = true } +chromadb = { version = "0.4.20", optional = true } pyepsilla = { version = ">=0.1.1", optional = true } pdfminer-six = { version = "20221105", optional = true } docx2txt = { version = "0.8", optional = true } From 1fd8e639634c91e010e5f848984f60bd0792e678 Mon Sep 17 00:00:00 2001 From: Jojo Ortiz Date: Fri, 22 Dec 2023 14:57:29 -0800 Subject: [PATCH 2/3] update openai, datasets, transformers, peft, and trl packages --- pykoi/rlhf/config.py | 68 +++++++++-------------------- pykoi/rlhf/supervised_finetuning.py | 40 +++++++---------- pyproject.toml | 10 ++--- 3 files changed, 41 insertions(+), 77 deletions(-) diff --git a/pykoi/rlhf/config.py b/pykoi/rlhf/config.py index d413fe7..c37b05f 100644 --- a/pykoi/rlhf/config.py +++ b/pykoi/rlhf/config.py @@ -19,9 +19,7 @@ class RLHFConfig: base_model_path: str = field( default="elinas/llama-7b-hf-transformers-4.29", - metadata={ - "help": "Huggingface model name or a local path to the base model." - }, + metadata={"help": "Huggingface model name or a local path to the base model."}, ) dataset_type: Optional[str] = field( default="local_db", @@ -68,7 +66,7 @@ class RLHFConfig: # default=8, # metadata={"help": "Batch size."}) per_device_train_batch_size: Optional[int] = field( - default=2, metadata={"help": "Batch size per device for training."} + default=1, metadata={"help": "Batch size per device for training."} ) per_device_eval_batch_size: Optional[int] = field( default=8, metadata={"help": "Batch size per device for evaluation."} @@ -89,12 +87,8 @@ class RLHFConfig: local_rank: Optional[int] = field( default=-1, metadata={"help": "Used for multi-gpu."} ) - fp16: Optional[bool] = field( - default=True, metadata={"help": "Enable FP16."} - ) - bf16: Optional[bool] = field( - default=False, metadata={"help": "Enable BF16."} - ) + fp16: Optional[bool] = field(default=True, metadata={"help": "Enable FP16."}) + bf16: Optional[bool] = field(default=False, metadata={"help": "Enable BF16."}) load_in_8bit: Optional[bool] = field( default=True, metadata={"help": "Whether load the model weights in 8-bit or not."}, @@ -113,6 +107,9 @@ class RLHFConfig: gradient_checkpointing: Optional[bool] = field( default=False, metadata={"help": "Enable gradient checkpointing."} ) + gradient_checkpointing_use_reentrant: Optional[bool] = field( + default=True, metadata={"help": "Enable reentrant for gradient checkpointing."} + ) seed: Optional[int] = field(default=0, metadata={"help": "Random seed."}) num_workers: Optional[int] = field( default=None, metadata={"help": "Number of workers."} @@ -121,9 +118,7 @@ class RLHFConfig: default="./rlhf_checkpoints", metadata={"help": "Output directory for all model weights."}, ) - log_freq: Optional[int] = field( - default=1, metadata={"help": "Logging frequency."} - ) + log_freq: Optional[int] = field(default=1, metadata={"help": "Logging frequency."}) eval_freq: Optional[int] = field( default=1000, metadata={"help": "Evaluation frequency."} ) @@ -135,7 +130,7 @@ class RLHFConfig: metadata={"help": "Whether push to Huggingface Hub or not."}, ) - ## Step 1 SFT parameters + # Step 1 SFT parameters max_steps: Optional[int] = field( default=5, metadata={"help": "Maximum number of training steps."} ) @@ -145,9 +140,7 @@ class RLHFConfig: ) dataset_subset_sft_train: Optional[int] = field( default=10000, - metadata={ - "help": "The size of the subset of the training data to use." - }, + metadata={"help": "The size of the subset of the training data to use."}, ) split: Optional[str] = field( default="train", metadata={"help": "Dataset split to use."} @@ -167,8 +160,7 @@ class RLHFConfig: default="step1_supervised_finetuning_lora_final/", metadata={ "help": ( - "Output directory for step 1 supervised finetuning's Lora" - " weights." + "Output directory for step 1 supervised finetuning's Lora" " weights." ) }, ) @@ -194,17 +186,14 @@ class RLHFConfig: reward_model_path: Optional[str] = field( default="databricks/dolly-v2-3b", metadata={ - "help": ( - "Huggingface model name or a local path to the reward model." - ) + "help": ("Huggingface model name or a local path to the reward model.") }, ) reward_lora_path: Optional[str] = field( default="step2_reward_finetuning_lora_final/", metadata={ "help": ( - "Output directory for step 1 supervised finetuning's Lora" - " weights." + "Output directory for step 1 supervised finetuning's Lora" " weights." ) }, ) @@ -222,9 +211,7 @@ class RLHFConfig: ) reward_num_of_data: Optional[int] = field( default=1000, - metadata={ - "help": "The size of the subset of the training data to use." - }, + metadata={"help": "The size of the subset of the training data to use."}, ) max_seq_length_reward: Optional[int] = field( default=512, metadata={"help": "Maximum sequence length."} @@ -246,9 +233,7 @@ class RLHFConfig: ) label_names: Optional[List[str]] = field( default_factory=list, - metadata={ - "help": "List of column names in the dataset to use as labels." - }, + metadata={"help": "List of column names in the dataset to use as labels."}, ) logging_strategy: Optional[str] = field( default="steps", @@ -284,20 +269,14 @@ class RLHFConfig: ) dataset_subset_rl_train: Optional[int] = field( default=10000, - metadata={ - "help": "The size of the subset of the training data to use." - }, + metadata={"help": "The size of the subset of the training data to use."}, ) adafactor: Optional[bool] = field( default=False, metadata={"help": "whether to use the adafactor optimizer"}, ) - top_k: Optional[float] = field( - default=0.0, metadata={"help": "Value for top_k"} - ) - top_p: Optional[float] = field( - default=1.0, metadata={"help": "Value for top_p"} - ) + top_k: Optional[float] = field(default=0.0, metadata={"help": "Value for top_k"}) + top_p: Optional[float] = field(default=1.0, metadata={"help": "Value for top_p"}) do_sample: Optional[bool] = field( default=True, metadata={"help": "Flag for sampling"} ) @@ -318,9 +297,7 @@ class RLHFConfig: ) ppo_epochs: Optional[int] = field( default=10, - metadata={ - "help": "the number of optimisation epochs per batch of samples" - }, + metadata={"help": "the number of optimisation epochs per batch of samples"}, ) total_epochs: Optional[int] = field( default=100, metadata={"help": "number of total epochs"} @@ -333,9 +310,7 @@ class RLHFConfig: ) reward_baseline: Optional[float] = field( default=0.0, - metadata={ - "help": "a baseline value that is subtracted from the reward" - }, + metadata={"help": "a baseline value that is subtracted from the reward"}, ) init_kl_coef: Optional[float] = field( default=0.2, @@ -354,8 +329,7 @@ class RLHFConfig: default="step3_reinforcement_learning_final_lora_weights/", metadata={ "help": ( - "Output directory for step 3 reinforcement learning's Lora" - " weights." + "Output directory for step 3 reinforcement learning's Lora" " weights." ) }, ) diff --git a/pykoi/rlhf/supervised_finetuning.py b/pykoi/rlhf/supervised_finetuning.py index ba6016c..fd98d46 100644 --- a/pykoi/rlhf/supervised_finetuning.py +++ b/pykoi/rlhf/supervised_finetuning.py @@ -1,10 +1,10 @@ """superised_finetuning.""" import os -from typing import Optional -import torch import time - from datetime import datetime +from typing import Optional + +import torch from datasets import Dataset, load_dataset from peft import PeftConfig, PeftModel from transformers import ( @@ -13,22 +13,19 @@ AutoTokenizer, TrainingArguments, ) - from trl import SFTTrainer from trl.trainer.utils import ConstantLengthDataset + from pykoi.chat.db.constants import ( + QA_CSV_HEADER_ANSWER, QA_CSV_HEADER_ID, QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, QA_CSV_HEADER_VOTE_STATUS, ) from pykoi.chat.db.qa_database import QuestionAnswerDatabase from pykoi.rlhf.config import RLHFConfig +from pykoi.telemetry.events import SFTStartEvent, SFTStopEvent from pykoi.telemetry.telemetry import Telemetry -from pykoi.telemetry.events import ( - SFTStartEvent, - SFTStopEvent, -) class SupervisedFinetuning: @@ -46,9 +43,7 @@ class SupervisedFinetuning: trainer (SFTTrainer): The trainer object used for training the model. """ - def __init__(self, - rlhf_config: RLHFConfig, - enable_telemetry: bool = True) -> None: + def __init__(self, rlhf_config: RLHFConfig, enable_telemetry: bool = True) -> None: """ Initializes the SFTTrainer object. @@ -58,18 +53,12 @@ def __init__(self, """ self._telemetry = Telemetry(enable_telemetry) self._rlhf_config = rlhf_config - self.tokenizer = AutoTokenizer.from_pretrained( - rlhf_config.base_model_path - ) + self.tokenizer = AutoTokenizer.from_pretrained(rlhf_config.base_model_path) self.num_proc = ( - self._rlhf_config.num_workers - if not self._rlhf_config.streaming - else None + self._rlhf_config.num_workers if not self._rlhf_config.streaming else None ) self.dataset = self.create_datasets(self.tokenizer, self._rlhf_config) - self.torch_dtype = ( - torch.bfloat16 if self._rlhf_config.bf16 else torch.float16 - ) + self.torch_dtype = torch.bfloat16 if self._rlhf_config.bf16 else torch.float16 # self.torch_dtype = torch.bfloat16 if bf16 else (torch.float16 if fp16 else torch.float32) self.training_args = TrainingArguments( output_dir=self._rlhf_config.output_dir, @@ -86,6 +75,9 @@ def __init__(self, warmup_steps=self._rlhf_config.num_warmup_steps, gradient_accumulation_steps=self._rlhf_config.gradient_accumulation_steps, gradient_checkpointing=self._rlhf_config.gradient_checkpointing, + gradient_checkpointing_kwargs={ + "use_reentrant": self._rlhf_config.gradient_checkpointing_use_reentrant + }, fp16=self._rlhf_config.fp16, bf16=self._rlhf_config.bf16, weight_decay=self._rlhf_config.weight_decay, @@ -158,7 +150,7 @@ def save(self, output_path=None): def train_and_save(self, output_path=None): start_event = SFTStartEvent( start_time=time.time(), date_time=datetime.utcfromtimestamp(time.time()) - ) + ) self._telemetry.capture(start_event) self.trainer.train() self.save(output_path) @@ -182,9 +174,7 @@ def create_datasets(self, tokenizer, args): if args.dataset_type == "local_db": qa_database = QuestionAnswerDatabase() my_data_pd = qa_database.retrieve_all_question_answers_as_pandas() - my_data_pd = my_data_pd[ - my_data_pd[QA_CSV_HEADER_VOTE_STATUS] == "up" - ] + my_data_pd = my_data_pd[my_data_pd[QA_CSV_HEADER_VOTE_STATUS] == "up"] my_data_pd = my_data_pd[ [QA_CSV_HEADER_ID, QA_CSV_HEADER_QUESTION, QA_CSV_HEADER_ANSWER] ] diff --git a/pyproject.toml b/pyproject.toml index b7100b3..b2054e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ pydantic = "2.5.2" starlette = "0.27.0" uvicorn = "0.23.1" scipy = "1.11.1" -openai = "^1.2.4" +openai = "1.6.1" passlib = "1.7.4" bcrypt = "4.0.1" posthog = "3.0.1" @@ -22,7 +22,7 @@ pynvml = "11.5.0" pandas = "2.0.3" python-dotenv = "^1.0.0" -transformers = { version = "4.35.0", optional = true } +transformers = { version = "4.36.2", optional = true } einops = { version = "0.6.1", optional = true } accelerate = { version = "0.21.0", optional = true } bitsandbytes = { version = "0.40.2", optional = true } @@ -37,10 +37,10 @@ python-multipart = { version = "0.0.6", optional = true } tiktoken = { version = "0.4.0", optional = true } sentence-transformers = { version = "2.2.2", optional = true } -datasets = { version = "2.14.5", optional = true } +datasets = { version = "2.15.0", optional = true } evaluate = { version = "0.4.0", optional = true } -peft = { version = "0.5.0", optional = true } -trl = { version = "0.4.7", optional = true } +peft = { version = "0.7.1", optional = true } +trl = { version = "0.7.4", optional = true } [tool.poetry.extras] huggingface = [ From 8dece7b6f171386f63ac02dffaf717baba53ff3a Mon Sep 17 00:00:00 2001 From: Jojo Ortiz Date: Fri, 22 Dec 2023 17:54:59 -0800 Subject: [PATCH 3/3] add TODO and run black and isort --- docs/conf.py | 2 +- .../demo_launch_app_gpu_huggingface.py | 4 +- .../demo_launch_app_gpu_huggingface_peft.py | 4 +- .../demo_model_comparator_gpu_huggingface.py | 1 - example/mlu/demo_comparator.py | 5 +- .../retrieval_qa_huggingface_demo.py | 24 +-- example/rlhf/demo_rl.py | 10 +- example/rlhf/demo_rw_finetuning.py | 25 +-- .../rlhf/demo_supervised_finetuning_nike.py | 15 +- example/rlhf/supervised_finetuning_demo.py | 25 ++- pykoi/application.py | 37 +++-- pykoi/chat/__init__.py | 5 +- pykoi/chat/db/abs_database.py | 17 +- pykoi/chat/db/comparator_database.py | 4 - pykoi/chat/db/rag_database.py | 16 +- pykoi/chat/db/ranking_database.py | 4 +- pykoi/chat/llm/abs_llm.py | 8 +- pykoi/chat/llm/huggingface.py | 5 +- pykoi/chat/llm/instruct_pipeline.py | 17 +- pykoi/chat/llm/mlu.py | 3 +- pykoi/chat/llm/model_factory.py | 3 +- pykoi/chat/llm/peft_huggingface.py | 6 +- pykoi/component/__init__.py | 2 +- pykoi/component/base.py | 4 +- pykoi/component/chatbot_comparator.py | 12 +- pykoi/component/chatbot_database_factory.py | 4 +- pykoi/component/nvml.py | 2 +- pykoi/component/retrieval_qa.py | 5 +- pykoi/interactives/barchart.py | 4 +- pykoi/interactives/chatbot.py | 4 +- pykoi/ops/__init__.py | 2 +- pykoi/ops/nvml.py | 1 - pykoi/retrieval/llm/embedding_factory.py | 4 +- pykoi/retrieval/llm/huggingface.py | 20 ++- pykoi/retrieval/llm/retrieval_factory.py | 2 + pykoi/retrieval/vectordb/abs_vectordb.py | 6 +- pykoi/retrieval/vectordb/chroma.py | 2 +- pykoi/retrieval/vectordb/epsilla.py | 12 +- pykoi/rlhf/__init__.py | 6 +- pykoi/rlhf/config.py | 1 + pykoi/rlhf/rl_finetuning.py | 157 ++++++++---------- pykoi/rlhf/rw_finetuning.py | 62 +++---- pykoi/rlhf/supervised_finetuning.py | 18 +- pykoi/telemetry/events.py | 16 +- pykoi/telemetry/telemetry.py | 7 +- 45 files changed, 265 insertions(+), 328 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 2d199a8..0deea48 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -79,5 +79,5 @@ """, "class": "", }, - ] + ], } diff --git a/example/chatbot/demo_launch_app_gpu_huggingface.py b/example/chatbot/demo_launch_app_gpu_huggingface.py index fe72694..8513e01 100644 --- a/example/chatbot/demo_launch_app_gpu_huggingface.py +++ b/example/chatbot/demo_launch_app_gpu_huggingface.py @@ -12,11 +12,9 @@ ``` """ from pykoi import Application -from pykoi.chat import ModelFactory -from pykoi.chat import QuestionAnswerDatabase +from pykoi.chat import ModelFactory, QuestionAnswerDatabase from pykoi.component import Chatbot, Dashboard - ################################################################################### # Creating a Huggingface model tiiuae/falcon-7b (EC2 g5.4xlarge with 100GB space) # ################################################################################### diff --git a/example/chatbot/demo_launch_app_gpu_huggingface_peft.py b/example/chatbot/demo_launch_app_gpu_huggingface_peft.py index 8d8b113..1dc0f7c 100644 --- a/example/chatbot/demo_launch_app_gpu_huggingface_peft.py +++ b/example/chatbot/demo_launch_app_gpu_huggingface_peft.py @@ -13,11 +13,9 @@ """ from pykoi import Application -from pykoi.chat import ModelFactory -from pykoi.chat import QuestionAnswerDatabase +from pykoi.chat import ModelFactory, QuestionAnswerDatabase from pykoi.component import Chatbot, Dashboard - ################################################################################### # Creating a Huggingface model tiiuae/falcon-7b (EC2 g5.4xlarge with 100GB space) # ################################################################################### diff --git a/example/comparator/demo_model_comparator_gpu_huggingface.py b/example/comparator/demo_model_comparator_gpu_huggingface.py index 7ddec16..0b2f92c 100644 --- a/example/comparator/demo_model_comparator_gpu_huggingface.py +++ b/example/comparator/demo_model_comparator_gpu_huggingface.py @@ -15,7 +15,6 @@ from pykoi.chat import ModelFactory from pykoi.component import Compare - ################################################################################### # Creating a Huggingface model tiiuae/falcon-rw-1b (EC2 g4.2xlarge with 100GB space) # ################################################################################### diff --git a/example/mlu/demo_comparator.py b/example/mlu/demo_comparator.py index 228a082..756f425 100644 --- a/example/mlu/demo_comparator.py +++ b/example/mlu/demo_comparator.py @@ -6,7 +6,6 @@ from pykoi.chat.llm.huggingface import HuggingfaceModel from pykoi.component import Compare - ###################################################################################### # Creating a Huggingface model tiiuae/falcon-rw-1b (EC2 g4.2xlarge with 100GB space) # ###################################################################################### @@ -73,9 +72,7 @@ tokenizers = [hf_tokenizer_1, hf_tokenizer_2, hf_tokenizer_3] models_list = [ - HuggingfaceModel.create( - model=model, tokenizer=tokenizer, name=name, max_length=100 - ) + HuggingfaceModel.create(model=model, tokenizer=tokenizer, name=name, max_length=100) for model, tokenizer, name in zip(models, tokenizers, model_name) ] diff --git a/example/retrieval_qa/retrieval_qa_huggingface_demo.py b/example/retrieval_qa/retrieval_qa_huggingface_demo.py index 24771f1..fb42a1c 100644 --- a/example/retrieval_qa/retrieval_qa_huggingface_demo.py +++ b/example/retrieval_qa/retrieval_qa_huggingface_demo.py @@ -3,27 +3,29 @@ python -m example.retrieval_qa.retrieval_qa_huggingface_demo """ -import os import argparse +import os + +from dotenv import load_dotenv + from pykoi import Application from pykoi.chat import RAGDatabase -from pykoi.retrieval import RetrievalFactory -from pykoi.retrieval import VectorDbFactory from pykoi.component import Chatbot, Dashboard, RetrievalQA -from dotenv import load_dotenv +from pykoi.retrieval import RetrievalFactory, VectorDbFactory # NOTE: Configure your retrieval model as RETRIEVAL_MODEL in .env file. # Load environment variables from .env file load_dotenv() ## Set the RETRIEVAL_MODEL, pykoi supports most of the open-source LLMs, e.g. - # "HuggingFaceH4/zephyr-7b-beta" - # "meta-llama/Llama-2-7b-chat-hf" - # "mistralai/Mistral-7B-v0.1" - # "databricks/dolly-v2-3b" +# "HuggingFaceH4/zephyr-7b-beta" +# "meta-llama/Llama-2-7b-chat-hf" +# "mistralai/Mistral-7B-v0.1" +# "databricks/dolly-v2-3b" RETRIEVAL_MODEL = os.getenv("RETRIEVAL_MODEL", default="mistralai/Mistral-7B-v0.1") + def main(**kwargs): os.environ["DOC_PATH"] = os.path.join(os.getcwd(), "temp/docs") os.environ["VECTORDB_PATH"] = os.path.join(os.getcwd(), "temp/vectordb") @@ -48,11 +50,13 @@ def main(**kwargs): vector_db=vector_db, model_name=RETRIEVAL_MODEL, trust_remote_code=True, - max_length=1000 + max_length=1000, ) # retrieval, chatbot, and dashboard pykoi components - retriever = RetrievalQA(retrieval_model=retrieval_model, vector_db=vector_db, feedback="rag") + retriever = RetrievalQA( + retrieval_model=retrieval_model, vector_db=vector_db, feedback="rag" + ) chatbot = Chatbot(None, feedback="rag", is_retrieval=True) # dashboard = Dashboard(RAGDatabase(), feedback="rag") diff --git a/example/rlhf/demo_rl.py b/example/rlhf/demo_rl.py index 3e80f18..aa07f32 100644 --- a/example/rlhf/demo_rl.py +++ b/example/rlhf/demo_rl.py @@ -9,17 +9,15 @@ """ # accelerate launch --num_machines 1 --num_processes 1 --mixed_precision fp16 example/rlhf/demo_rl.py -from pykoi.rlhf import RLHFConfig -from pykoi.rlhf import RLFinetuning - +from pykoi.rlhf import RLFinetuning, RLHFConfig # use huggingface sft and reward model config = RLHFConfig( - base_model_path="models/rlhf_step1_sft", #"elinas/llama-7b-hf-transformers-4.29", - dataset_type="huggingface", + base_model_path="models/rlhf_step1_sft", # "elinas/llama-7b-hf-transformers-4.29", + dataset_type="huggingface", dataset_name="cambioml/stack_exchange_rank_10k_dataset", dataset_subset_rl="data", - reward_model_path="models/rlhf_step2_rw/", #"cambioml/rlhf_reward_model", + reward_model_path="models/rlhf_step2_rw/", # "cambioml/rlhf_reward_model", save_freq=1, ppo_batch_size=32, ppo_epochs=4, diff --git a/example/rlhf/demo_rw_finetuning.py b/example/rlhf/demo_rw_finetuning.py index fbec942..aeddd8c 100644 --- a/example/rlhf/demo_rw_finetuning.py +++ b/example/rlhf/demo_rw_finetuning.py @@ -3,23 +3,24 @@ python -m example.rlhf.demo_rw_finetuning """ -from pykoi.rlhf import RLHFConfig -from pykoi.rlhf import RewardFinetuning from pykoi.chat import RankingDatabase -from pykoi.chat.db.constants import ( - RANKING_CSV_HEADER_ID, - RANKING_CSV_HEADER_QUESTION, - RANKING_CSV_HEADER_UP_RANKING_ANSWER, - RANKING_CSV_HEADER_LOW_RANKING_ANSWER) +from pykoi.chat.db.constants import (RANKING_CSV_HEADER_ID, + RANKING_CSV_HEADER_LOW_RANKING_ANSWER, + RANKING_CSV_HEADER_QUESTION, + RANKING_CSV_HEADER_UP_RANKING_ANSWER) +from pykoi.rlhf import RewardFinetuning, RLHFConfig # get data from local database ranking_database = RankingDatabase() my_data_pd = ranking_database.retrieve_all_question_answers_as_pandas() -my_data_pd = my_data_pd[[ - RANKING_CSV_HEADER_ID, - RANKING_CSV_HEADER_QUESTION, - RANKING_CSV_HEADER_UP_RANKING_ANSWER, - RANKING_CSV_HEADER_LOW_RANKING_ANSWER]] +my_data_pd = my_data_pd[ + [ + RANKING_CSV_HEADER_ID, + RANKING_CSV_HEADER_QUESTION, + RANKING_CSV_HEADER_UP_RANKING_ANSWER, + RANKING_CSV_HEADER_LOW_RANKING_ANSWER, + ] +] # analyze the data print(my_data_pd) diff --git a/example/rlhf/demo_supervised_finetuning_nike.py b/example/rlhf/demo_supervised_finetuning_nike.py index 684d1e4..484886b 100644 --- a/example/rlhf/demo_supervised_finetuning_nike.py +++ b/example/rlhf/demo_supervised_finetuning_nike.py @@ -3,10 +3,9 @@ python -m example.rlhf.demo_supervised_finetuning_nike """ -from pykoi.rlhf import RLHFConfig -from pykoi.rlhf import SupervisedFinetuning from peft import LoraConfig, TaskType +from pykoi.rlhf import RLHFConfig, SupervisedFinetuning base_model_path = "meta-llama/Llama-2-7b-chat-hf" dataset_name = "./output_self_instructed_data_nike_10k_2023_FULL.csv" @@ -22,7 +21,7 @@ save_freq = 200 train_test_split_ratio = 0.0001 dataset_subset_sft_train = 999999999 -size_valid_set = 0 +size_valid_set = 0 r = 8 lora_alpha = 16 @@ -36,13 +35,13 @@ lora_dropout=lora_dropout, bias=bias, task_type=task_type, - ) +) # run supervised finetuning config = RLHFConfig( - base_model_path=base_model_path, - dataset_type=dataset_type, + base_model_path=base_model_path, + dataset_type=dataset_type, dataset_name=dataset_name, learning_rate=learning_rate, weight_decay=weight_decay, @@ -55,7 +54,7 @@ train_test_split_ratio=train_test_split_ratio, dataset_subset_sft_train=dataset_subset_sft_train, size_valid_set=size_valid_set, - lora_config_rl=lora_config - ) + lora_config_rl=lora_config, +) rlhf_step1_sft = SupervisedFinetuning(config) rlhf_step1_sft.train_and_save(peft_model_path) diff --git a/example/rlhf/supervised_finetuning_demo.py b/example/rlhf/supervised_finetuning_demo.py index aba71e5..e1d10f4 100644 --- a/example/rlhf/supervised_finetuning_demo.py +++ b/example/rlhf/supervised_finetuning_demo.py @@ -4,23 +4,22 @@ """ from pykoi.chat import QuestionAnswerDatabase -from pykoi.rlhf import RLHFConfig -from pykoi.rlhf import SupervisedFinetuning - -from pykoi.chat.db.constants import ( - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_VOTE_STATUS) +from pykoi.chat.db.constants import (QA_CSV_HEADER_ANSWER, QA_CSV_HEADER_ID, + QA_CSV_HEADER_QUESTION, + QA_CSV_HEADER_VOTE_STATUS) +from pykoi.rlhf import RLHFConfig, SupervisedFinetuning # get data from local database qa_database = QuestionAnswerDatabase() my_data_pd = qa_database.retrieve_all_question_answers_as_pandas() -my_data_pd = my_data_pd[[ - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_VOTE_STATUS]] +my_data_pd = my_data_pd[ + [ + QA_CSV_HEADER_ID, + QA_CSV_HEADER_QUESTION, + QA_CSV_HEADER_ANSWER, + QA_CSV_HEADER_VOTE_STATUS, + ] +] # analyze the data print(my_data_pd) diff --git a/pykoi/application.py b/pykoi/application.py index 8da4b03..36b661f 100644 --- a/pykoi/application.py +++ b/pykoi/application.py @@ -4,20 +4,20 @@ import re import subprocess import time - from datetime import datetime -from typing import List, Optional, Any, Dict, Union -from fastapi import FastAPI, Depends, HTTPException, UploadFile, status -from fastapi.security import HTTPBasic, HTTPBasicCredentials -from passlib.context import CryptContext +from typing import Any, Dict, List, Optional, Union + +from fastapi import Depends, FastAPI, HTTPException, UploadFile, status from fastapi.responses import JSONResponse +from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.staticfiles import StaticFiles +from passlib.context import CryptContext from pydantic import BaseModel from starlette.middleware.cors import CORSMiddleware -from pykoi.telemetry.telemetry import Telemetry -from pykoi.telemetry.events import AppStartEvent, AppStopEvent -from pykoi.chat.db.constants import RAG_LIST_SEPARATOR +from pykoi.chat.db.constants import RAG_LIST_SEPARATOR +from pykoi.telemetry.events import AppStartEvent, AppStopEvent +from pykoi.telemetry.telemetry import Telemetry oauth_scheme = HTTPBasic() @@ -644,10 +644,14 @@ async def inference( try: print("[/retrieval]: model inference.....", request_body.prompt) component["component"].retrieval_model.re_init(request_body.file_names) - output = component["component"].retrieval_model.run_with_return_source_documents({"query": request_body.prompt}) - print('output', output, output["result"]) + output = component[ + "component" + ].retrieval_model.run_with_return_source_documents( + {"query": request_body.prompt} + ) + print("output", output, output["result"]) if "source_documents" not in output: - print('no source documents', output) + print("no source documents", output) source = ["N/A"] source_content = ["N/A"] elif output["source_documents"] == []: @@ -791,9 +795,16 @@ async def check_file_exists( try: file_path = f"{os.getcwd()}/{file_name}" file_exists = os.path.exists(file_path) - return {"log": f"Check if {file_name} exists succeeded.", "file_exists": file_exists, "status": "200"} + return { + "log": f"Check if {file_name} exists succeeded.", + "file_exists": file_exists, + "status": "200", + } except Exception as ex: - return {"log": f"Check if {file_name} exists failed: {ex}", "status": "500"} + return { + "log": f"Check if {file_name} exists failed: {ex}", + "status": "500", + } def create_data_route(id: str, data_source: Any): """ diff --git a/pykoi/chat/__init__.py b/pykoi/chat/__init__.py index efbeb29..d737e4b 100644 --- a/pykoi/chat/__init__.py +++ b/pykoi/chat/__init__.py @@ -1,6 +1,5 @@ import pykoi.chat.llm as llm - -from pykoi.chat.llm.model_factory import ModelFactory from pykoi.chat.db.qa_database import QuestionAnswerDatabase +from pykoi.chat.db.rag_database import RAGDatabase from pykoi.chat.db.ranking_database import RankingDatabase -from pykoi.chat.db.rag_database import RAGDatabase \ No newline at end of file +from pykoi.chat.llm.model_factory import ModelFactory diff --git a/pykoi/chat/db/abs_database.py b/pykoi/chat/db/abs_database.py index 77f2d6c..24d1ed5 100644 --- a/pykoi/chat/db/abs_database.py +++ b/pykoi/chat/db/abs_database.py @@ -2,7 +2,6 @@ import abc import sqlite3 import threading - from typing import List, Tuple @@ -71,9 +70,7 @@ def insert(self, **kwargs) -> None: Args: kwargs (dict): The key-value pairs to insert into the database. """ - raise NotImplementedError( - "Insert method must be implemented by subclasses." - ) + raise NotImplementedError("Insert method must be implemented by subclasses.") @abc.abstractmethod def update(self, **kwargs) -> None: @@ -83,17 +80,13 @@ def update(self, **kwargs) -> None: Args: kwargs (dict): The key-value pairs to update in the database. """ - raise NotImplementedError( - "Update method must be implemented by subclasses." - ) + raise NotImplementedError("Update method must be implemented by subclasses.") def retrieve_all(self) -> List[Tuple]: """ Retrieves all pairs from the database. """ - raise NotImplementedError( - "Retrieve method must be implemented by subclasses." - ) + raise NotImplementedError("Retrieve method must be implemented by subclasses.") @abc.abstractmethod def print_table(self, rows: str) -> None: @@ -103,6 +96,4 @@ def print_table(self, rows: str) -> None: Args: rows (str): The rows to print. """ - raise NotImplementedError( - "Print method must be implemented by subclasses." - ) + raise NotImplementedError("Print method must be implemented by subclasses.") diff --git a/pykoi/chat/db/comparator_database.py b/pykoi/chat/db/comparator_database.py index 0eb9578..761b8a2 100644 --- a/pykoi/chat/db/comparator_database.py +++ b/pykoi/chat/db/comparator_database.py @@ -2,12 +2,10 @@ import csv import datetime import os - from typing import List, Tuple import pandas as pd - from pykoi.chat.db.abs_database import AbsDatabase from pykoi.chat.db.constants import COMPARATOR_CSV_HEADER @@ -238,7 +236,6 @@ def print_table(self, rows: List[Tuple]) -> None: f"Timestamp: {row[5]}" ) - def save_to_csv(self, csv_file_name="comparator_table"): """ This method saves the contents of the RAG table into a CSV file. @@ -292,4 +289,3 @@ def retrieve_all_question_answers_as_pandas(self) -> pd.DataFrame: columns=["ID", "Model", "QID", "Question", "Rank", "Answer", "Timestamp"], ) return df - diff --git a/pykoi/chat/db/rag_database.py b/pykoi/chat/db/rag_database.py index 13dc966..309cd18 100644 --- a/pykoi/chat/db/rag_database.py +++ b/pykoi/chat/db/rag_database.py @@ -72,7 +72,14 @@ def create_table(self): print("Table contents after creating table:") self.print_table(rows) - def insert_question_answer(self, question: str, answer: str, rag_sources: list, source: list, source_content: list): + def insert_question_answer( + self, + question: str, + answer: str, + rag_sources: list, + source: list, + source_content: list, + ): """ Inserts a new question-answer pair into the database with the given question and answer. The vote_status field is set to 'n/a' by default. @@ -100,7 +107,10 @@ def insert_question_answer(self, question: str, answer: str, rag_sources: list, with self._lock: cursor = self.get_cursor() - cursor.execute(query, (question, answer, rag_sources, source, source_content, timestamp)) + cursor.execute( + query, + (question, answer, rag_sources, source, source_content, timestamp), + ) self.get_connection().commit() if self._debug: @@ -155,7 +165,7 @@ def update_answer(self, id, new_answer): SET edited_answer = ? WHERE id = ?; """ - print('update_answer',new_answer) + print("update_answer", new_answer) with self._lock: cursor = self.get_cursor() cursor.execute(query, (new_answer, id)) diff --git a/pykoi/chat/db/ranking_database.py b/pykoi/chat/db/ranking_database.py index c4bf75e..4facee2 100644 --- a/pykoi/chat/db/ranking_database.py +++ b/pykoi/chat/db/ranking_database.py @@ -86,9 +86,7 @@ def insert_ranking( """ with self._lock: cursor = self.get_cursor() - cursor.execute( - query, (question, up_ranking_answer, low_ranking_answer) - ) + cursor.execute(query, (question, up_ranking_answer, low_ranking_answer)) self.get_connection().commit() if self._debug: diff --git a/pykoi/chat/llm/abs_llm.py b/pykoi/chat/llm/abs_llm.py index afb5333..db3fa53 100644 --- a/pykoi/chat/llm/abs_llm.py +++ b/pykoi/chat/llm/abs_llm.py @@ -25,9 +25,7 @@ def predict(self, message: str, num_of_response: int): Raises: NotImplementedError: This method must be implemented by subclasses. """ - raise NotImplementedError( - "This method must be implemented by subclasses." - ) + raise NotImplementedError("This method must be implemented by subclasses.") @property def name(self): @@ -38,6 +36,4 @@ def name(self): Raises: NotImplementedError: This method must be implemented by subclasses. """ - raise NotImplementedError( - "This method must be implemented by subclasses." - ) + raise NotImplementedError("This method must be implemented by subclasses.") diff --git a/pykoi/chat/llm/huggingface.py b/pykoi/chat/llm/huggingface.py index 71b7874..90237a5 100644 --- a/pykoi/chat/llm/huggingface.py +++ b/pykoi/chat/llm/huggingface.py @@ -78,9 +78,8 @@ def predict(self, message: str, num_of_response: int = 1): """ # TODO: need to refractor and include all the derivatives of dolly family if "dolly" in self._pretrained_model_name_or_path: - from pykoi.chat.llm.instruct_pipeline import ( - InstructionTextGenerationPipeline, - ) + from pykoi.chat.llm.instruct_pipeline import \ + InstructionTextGenerationPipeline generate_text = InstructionTextGenerationPipeline( model=self._model, tokenizer=self._tokenizer diff --git a/pykoi/chat/llm/instruct_pipeline.py b/pykoi/chat/llm/instruct_pipeline.py index 677b943..e83f399 100644 --- a/pykoi/chat/llm/instruct_pipeline.py +++ b/pykoi/chat/llm/instruct_pipeline.py @@ -6,7 +6,6 @@ import numpy as np from transformers import Pipeline, PreTrainedTokenizer - from transformers.utils import is_tf_available if is_tf_available(): @@ -91,9 +90,7 @@ def __init__( **kwargs, ) - def _sanitize_parameters( - self, return_full_text: bool = None, **generate_kwargs - ): + def _sanitize_parameters(self, return_full_text: bool = None, **generate_kwargs): preprocess_params = {} # newer versions of the tokenizer configure the response key as a special token. newer versions still may @@ -133,9 +130,7 @@ def _sanitize_parameters( return preprocess_params, forward_params, postprocess_params def preprocess(self, instruction_text, **generate_kwargs): - prompt_text = PROMPT_FOR_GENERATION_FORMAT.format( - instruction=instruction_text - ) + prompt_text = PROMPT_FOR_GENERATION_FORMAT.format(instruction=instruction_text) inputs = self.tokenizer( prompt_text, return_tensors="pt", @@ -192,9 +187,7 @@ def postprocess( generated_sequence = model_outputs["generated_sequence"][0] instruction_text = model_outputs["instruction_text"] - generated_sequence: List[ - List[int] - ] = generated_sequence.numpy().tolist() + generated_sequence: List[List[int]] = generated_sequence.numpy().tolist() records = [] for sequence in generated_sequence: # The response will be set to this variable if we can identify it. @@ -251,9 +244,7 @@ def postprocess( if m: decoded = m.group(1).strip() else: - logger.warn( - f"Failed to find response in:\n{fully_decoded}" - ) + logger.warn(f"Failed to find response in:\n{fully_decoded}") # If the full text is requested, then append the decoded text to the original instruction. # This technically isn't the full text, as we format the instruction in the prompt the model has been diff --git a/pykoi/chat/llm/mlu.py b/pykoi/chat/llm/mlu.py index 5c73530..a513ff2 100644 --- a/pykoi/chat/llm/mlu.py +++ b/pykoi/chat/llm/mlu.py @@ -1,8 +1,7 @@ """MLU HF model.""" from transformers import GenerationConfig -from pykoi.chat.llm.abs_llm import AbsLlm -from transformers import GenerationConfig +from pykoi.chat.llm.abs_llm import AbsLlm class MLUWrapper(AbsLlm): diff --git a/pykoi/chat/llm/model_factory.py b/pykoi/chat/llm/model_factory.py index b167dee..47d8385 100644 --- a/pykoi/chat/llm/model_factory.py +++ b/pykoi/chat/llm/model_factory.py @@ -45,7 +45,8 @@ def create_model(model_source: Union[str, ModelSource], **kwargs) -> AbsLlm: return HuggingfaceModel(**kwargs) elif model_source == ModelSource.PEFT_HUGGINGFACE: - from pykoi.chat.llm.peft_huggingface import PeftHuggingfacemodel + from pykoi.chat.llm.peft_huggingface import \ + PeftHuggingfacemodel return PeftHuggingfacemodel(**kwargs) elif model_source == ModelSource.MLU: diff --git a/pykoi/chat/llm/peft_huggingface.py b/pykoi/chat/llm/peft_huggingface.py index 1d2db89..47edce0 100644 --- a/pykoi/chat/llm/peft_huggingface.py +++ b/pykoi/chat/llm/peft_huggingface.py @@ -1,8 +1,7 @@ """Huggingface PEFT model for Language Model (LLM).""" import torch - -from transformers import AutoModelForCausalLM, AutoTokenizer from peft import PeftModel +from transformers import AutoModelForCausalLM, AutoTokenizer from pykoi.chat.llm.abs_llm import AbsLlm @@ -108,8 +107,7 @@ def predict(self, message: str, num_of_response: int = 1): ) print("[HuggingfaceModel] decode...") response = [ - self._tokenizer.decode(ids, skip_special_tokens=True) - for ids in output_ids + self._tokenizer.decode(ids, skip_special_tokens=True) for ids in output_ids ] print("response: ", response) diff --git a/pykoi/component/__init__.py b/pykoi/component/__init__.py index 5a66798..a22b1e2 100644 --- a/pykoi/component/__init__.py +++ b/pykoi/component/__init__.py @@ -1,4 +1,4 @@ from pykoi.component.base import Chatbot, Dashboard, Dropdown from pykoi.component.chatbot_comparator import Compare -from pykoi.component.retrieval_qa import RetrievalQA from pykoi.component.nvml import Nvml +from pykoi.component.retrieval_qa import RetrievalQA diff --git a/pykoi/component/base.py b/pykoi/component/base.py index d413eb2..e755cf6 100644 --- a/pykoi/component/base.py +++ b/pykoi/component/base.py @@ -2,13 +2,13 @@ import uuid from typing import Callable, List, Optional, Union -from pykoi.component.chatbot_database_factory import ChatbotDatabaseFactory -from pykoi.component.constants import FeedbackType from pykoi.chat.db.comparator_database import ComparatorDatabase from pykoi.chat.db.qa_database import QuestionAnswerDatabase from pykoi.chat.db.rag_database import RAGDatabase from pykoi.chat.db.ranking_database import RankingDatabase from pykoi.chat.llm.abs_llm import AbsLlm +from pykoi.component.chatbot_database_factory import ChatbotDatabaseFactory +from pykoi.component.constants import FeedbackType class DataSource: diff --git a/pykoi/component/chatbot_comparator.py b/pykoi/component/chatbot_comparator.py index 09ffc64..11fb4da 100644 --- a/pykoi/component/chatbot_comparator.py +++ b/pykoi/component/chatbot_comparator.py @@ -1,15 +1,13 @@ """Chatbot comparator component.""" import time -import pandas as pd - from typing import List -from pykoi.component.base import Component -from pykoi.chat.db.comparator_database import ( - ComparatorDatabase, - ComparatorQuestionDatabase, -) +import pandas as pd + +from pykoi.chat.db.comparator_database import (ComparatorDatabase, + ComparatorQuestionDatabase) from pykoi.chat.llm.abs_llm import AbsLlm +from pykoi.component.base import Component from pykoi.interactives.barchart import Barchart diff --git a/pykoi/component/chatbot_database_factory.py b/pykoi/component/chatbot_database_factory.py index d774ba8..825fc8b 100644 --- a/pykoi/component/chatbot_database_factory.py +++ b/pykoi/component/chatbot_database_factory.py @@ -1,10 +1,10 @@ """Chatbot Database Factory class.""" from typing import Union -from pykoi.component.constants import FeedbackType from pykoi.chat.db.qa_database import QuestionAnswerDatabase -from pykoi.chat.db.ranking_database import RankingDatabase from pykoi.chat.db.rag_database import RAGDatabase +from pykoi.chat.db.ranking_database import RankingDatabase +from pykoi.component.constants import FeedbackType class ChatbotDatabaseFactory: diff --git a/pykoi/component/nvml.py b/pykoi/component/nvml.py index d215e15..05d5675 100644 --- a/pykoi/component/nvml.py +++ b/pykoi/component/nvml.py @@ -1,8 +1,8 @@ """nvml component""" -from pykoi.ops.nvml import Nvml as Nv from pykoi.component.base import Component +from pykoi.ops.nvml import Nvml as Nv class Nvml(Component): diff --git a/pykoi/component/retrieval_qa.py b/pykoi/component/retrieval_qa.py index c15de2d..7260bb2 100644 --- a/pykoi/component/retrieval_qa.py +++ b/pykoi/component/retrieval_qa.py @@ -1,10 +1,9 @@ """Retrieval QA component.""" +from pykoi.component.base import Component +from pykoi.component.chatbot_database_factory import ChatbotDatabaseFactory from pykoi.retrieval.llm.abs_llm import AbsLlm from pykoi.retrieval.vectordb.abs_vectordb import AbsVectorDb -from pykoi.component.chatbot_database_factory import ChatbotDatabaseFactory - -from pykoi.component.base import Component class RetrievalQA(Component): diff --git a/pykoi/interactives/barchart.py b/pykoi/interactives/barchart.py index e164ff1..507fc84 100644 --- a/pykoi/interactives/barchart.py +++ b/pykoi/interactives/barchart.py @@ -1,9 +1,7 @@ """Module for the compiled Svelte Barchart interactive.""" import json - from random import randint - -from typing import Dict, Any +from typing import Any, Dict class Barchart: diff --git a/pykoi/interactives/chatbot.py b/pykoi/interactives/chatbot.py index 4e28e32..c18614f 100644 --- a/pykoi/interactives/chatbot.py +++ b/pykoi/interactives/chatbot.py @@ -1,8 +1,6 @@ import json - from random import randint - -from typing import Dict, Any +from typing import Any, Dict class Chatbot: diff --git a/pykoi/ops/__init__.py b/pykoi/ops/__init__.py index 69f541b..7663999 100644 --- a/pykoi/ops/__init__.py +++ b/pykoi/ops/__init__.py @@ -1 +1 @@ -from pykoi.ops.nvml import Nvml \ No newline at end of file +from pykoi.ops.nvml import Nvml diff --git a/pykoi/ops/nvml.py b/pykoi/ops/nvml.py index 0ea0497..12a6d9f 100644 --- a/pykoi/ops/nvml.py +++ b/pykoi/ops/nvml.py @@ -1,7 +1,6 @@ """ NVML (NVIDIA Management Library). """ import time - from datetime import datetime from typing import Any, Dict, List diff --git a/pykoi/retrieval/llm/embedding_factory.py b/pykoi/retrieval/llm/embedding_factory.py index 990384e..e7860f3 100644 --- a/pykoi/retrieval/llm/embedding_factory.py +++ b/pykoi/retrieval/llm/embedding_factory.py @@ -1,8 +1,8 @@ """Embedding factory for LLM""" from typing import Union +from langchain.embeddings import HuggingFaceEmbeddings, OpenAIEmbeddings from langchain.embeddings.base import Embeddings -from langchain.embeddings import OpenAIEmbeddings, HuggingFaceEmbeddings from pykoi.retrieval.llm.constants import ModelSource @@ -28,9 +28,11 @@ def create_embedding(model_source: Union[str, ModelSource], **kwargs) -> Embeddi model_source = ModelSource(model_source) if model_source == ModelSource.OPENAI: from langchain.embeddings import OpenAIEmbeddings + return OpenAIEmbeddings() elif model_source == ModelSource.HUGGINGFACE: from langchain.embeddings import HuggingFaceEmbeddings + return HuggingFaceEmbeddings( model_name=kwargs.get("model_name"), ) diff --git a/pykoi/retrieval/llm/huggingface.py b/pykoi/retrieval/llm/huggingface.py index d4df1ae..283a6e8 100644 --- a/pykoi/retrieval/llm/huggingface.py +++ b/pykoi/retrieval/llm/huggingface.py @@ -1,13 +1,13 @@ """OpenAI language model for retrieval""" import os -import torch +import torch +from dotenv import load_dotenv from langchain.chains import RetrievalQA from langchain.llms import HuggingFacePipeline from pykoi.retrieval.llm.abs_llm import AbsLlm from pykoi.retrieval.vectordb.abs_vectordb import AbsVectorDb -from dotenv import load_dotenv # NOTE: Configure your MIN_DOCS as RAG_NUM_SOURCES in .env file. # Load environment variables from .env file @@ -15,6 +15,7 @@ MIN_DOCS = int(os.getenv("RAG_NUM_SOURCES", default=2)) + class HuggingFaceModel(AbsLlm): """ A class representing a language model that uses Huggingface's model to generate text. @@ -34,7 +35,7 @@ def __init__(self, vector_db: AbsVectorDb, **kwargs): "temperature": 0, "max_length": kwargs.get("max_length", 500), "load_in_8bit": True, - "trust_remote_code": kwargs.get("trust_remote_code", True) + "trust_remote_code": kwargs.get("trust_remote_code", True), }, ) @@ -43,7 +44,9 @@ def __init__(self, vector_db: AbsVectorDb, **kwargs): self._retrieve_qa = RetrievalQA.from_chain_type( llm=self._llm, chain_type="stuff", - retriever=self._vector_db.as_retriever(search_kwargs={"k": MIN_DOCS, "filter": {}}), + retriever=self._vector_db.as_retriever( + search_kwargs={"k": MIN_DOCS, "filter": {}} + ), verbose=True, return_source_documents=True, ) @@ -69,12 +72,17 @@ def re_init(self, file_names: list[str]): self._retrieve_qa = RetrievalQA.from_chain_type( llm=self._llm, chain_type="stuff", - retriever=self._vector_db.as_retriever(search_kwargs={"k": MIN_DOCS, "filter": metadata_filename_filter}), + retriever=self._vector_db.as_retriever( + search_kwargs={"k": MIN_DOCS, "filter": metadata_filename_filter} + ), verbose=True, return_source_documents=True, ) - print("Re-initialized HuggingFaceModel successfully with filter: ", metadata_filename_filter) + print( + "Re-initialized HuggingFaceModel successfully with filter: ", + metadata_filename_filter, + ) super().__init__(self._retrieve_qa) except Exception as ex: diff --git a/pykoi/retrieval/llm/retrieval_factory.py b/pykoi/retrieval/llm/retrieval_factory.py index dfca7db..caa5574 100644 --- a/pykoi/retrieval/llm/retrieval_factory.py +++ b/pykoi/retrieval/llm/retrieval_factory.py @@ -28,9 +28,11 @@ def create( model_source = ModelSource(model_source) if model_source == ModelSource.OPENAI: from pykoi.retrieval.llm.openai import OpenAIModel + return OpenAIModel(vector_db) if model_source == ModelSource.HUGGINGFACE: from pykoi.retrieval.llm.huggingface import HuggingFaceModel + return HuggingFaceModel(vector_db, **kwargs) except Exception as ex: raise Exception(f"Unknown model: {model_source}") from ex diff --git a/pykoi/retrieval/vectordb/abs_vectordb.py b/pykoi/retrieval/vectordb/abs_vectordb.py index 2244643..597248c 100644 --- a/pykoi/retrieval/vectordb/abs_vectordb.py +++ b/pykoi/retrieval/vectordb/abs_vectordb.py @@ -1,9 +1,9 @@ import os -import docx2txt - from abc import ABC, abstractmethod -from langchain.text_splitter import RecursiveCharacterTextSplitter from pathlib import Path + +import docx2txt +from langchain.text_splitter import RecursiveCharacterTextSplitter from pdfminer.high_level import extract_text diff --git a/pykoi/retrieval/vectordb/chroma.py b/pykoi/retrieval/vectordb/chroma.py index 34d5a82..ef93f2a 100644 --- a/pykoi/retrieval/vectordb/chroma.py +++ b/pykoi/retrieval/vectordb/chroma.py @@ -1,6 +1,6 @@ import os -import numpy as np +import numpy as np from langchain.embeddings.base import Embeddings from langchain.vectorstores import Chroma from sklearn.decomposition import PCA diff --git a/pykoi/retrieval/vectordb/epsilla.py b/pykoi/retrieval/vectordb/epsilla.py index 0c48517..59bc7d3 100644 --- a/pykoi/retrieval/vectordb/epsilla.py +++ b/pykoi/retrieval/vectordb/epsilla.py @@ -1,14 +1,14 @@ """Vector store Epsilla module""" import os -import numpy as np import types - from typing import List + +import numpy as np +from langchain.embeddings import OpenAIEmbeddings from langchain.embeddings.base import Embeddings from langchain.schema import BaseRetriever, Document -from langchain.embeddings import OpenAIEmbeddings -from sklearn.decomposition import PCA from pyepsilla import vectordb +from sklearn.decomposition import PCA from pykoi.retrieval.vectordb.abs_vectordb import AbsVectorDb @@ -127,9 +127,7 @@ def as_retriever_wrapper(self, search_kwargs): ], ) if status_code == 409: - print( - f"{result['message']}. Continuing with the existing table." - ) + print(f"{result['message']}. Continuing with the existing table.") super().__init__() diff --git a/pykoi/rlhf/__init__.py b/pykoi/rlhf/__init__.py index affa11f..626ae61 100644 --- a/pykoi/rlhf/__init__.py +++ b/pykoi/rlhf/__init__.py @@ -1,4 +1,4 @@ -from pykoi.rlhf.supervised_finetuning import SupervisedFinetuning -from pykoi.rlhf.rw_finetuning import RewardFinetuning +from pykoi.rlhf.config import RLHFConfig from pykoi.rlhf.rl_finetuning import RLFinetuning -from pykoi.rlhf.config import RLHFConfig \ No newline at end of file +from pykoi.rlhf.rw_finetuning import RewardFinetuning +from pykoi.rlhf.supervised_finetuning import SupervisedFinetuning diff --git a/pykoi/rlhf/config.py b/pykoi/rlhf/config.py index c37b05f..e7721f1 100644 --- a/pykoi/rlhf/config.py +++ b/pykoi/rlhf/config.py @@ -65,6 +65,7 @@ class RLHFConfig: # batch_size: int = field( # default=8, # metadata={"help": "Batch size."}) + # TODO: for trl 0.7.4 there is a OOM issue with batch size > 1, need to revisit per_device_train_batch_size: Optional[int] = field( default=1, metadata={"help": "Batch size per device for training."} ) diff --git a/pykoi/rlhf/rl_finetuning.py b/pykoi/rlhf/rl_finetuning.py index bc6bbe3..ef0c1b7 100644 --- a/pykoi/rlhf/rl_finetuning.py +++ b/pykoi/rlhf/rl_finetuning.py @@ -1,46 +1,33 @@ """rl finetuning.""" +import json +import os import time from datetime import datetime -from pykoi.rlhf.config import RLHFConfig -from pykoi.chat.db.constants import ( - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_VOTE_STATUS, -) -import os -import json import numpy as np import torch -from pykoi.chat.db.qa_database import QuestionAnswerDatabase from accelerate import Accelerator from datasets import Dataset, load_dataset - +from huggingface_hub import hf_hub_download +from peft import AutoPeftModelForCausalLM, PeftConfig, PeftModel from tqdm import tqdm -from transformers import ( - AutoModelForSequenceClassification, - AutoTokenizer, - Trainer, - pipeline, - set_seed, -) +from transformers import (AutoModelForCausalLM, + AutoModelForSequenceClassification, AutoTokenizer, + Trainer, pipeline, set_seed) from trl import AutoModelForCausalLMWithValueHead, PPOConfig, PPOTrainer from trl.core import LengthSampler -from huggingface_hub import hf_hub_download -from transformers import AutoModelForCausalLM -from peft import PeftModel, PeftConfig, AutoPeftModelForCausalLM + +from pykoi.chat.db.constants import (QA_CSV_HEADER_ANSWER, QA_CSV_HEADER_ID, + QA_CSV_HEADER_QUESTION, + QA_CSV_HEADER_VOTE_STATUS) +from pykoi.chat.db.qa_database import QuestionAnswerDatabase +from pykoi.rlhf.config import RLHFConfig +from pykoi.telemetry.events import RLStartEvent, RLStopEvent from pykoi.telemetry.telemetry import Telemetry -from pykoi.telemetry.events import ( - RLStartEvent, - RLStopEvent, -) class RLFinetuning(Trainer): - def __init__(self, - rlhf_config: RLHFConfig, - enable_telemetry: bool = True) -> None: + def __init__(self, rlhf_config: RLHFConfig, enable_telemetry: bool = True) -> None: """ RLFinetuning class for finetuning a language model using reinforcement learning. @@ -51,9 +38,7 @@ def __init__(self, self._rlhf_config = rlhf_config self.accelerator = Accelerator() self.num_proc = ( - self._rlhf_config.num_workers - if not self._rlhf_config.streaming - else None + self._rlhf_config.num_workers if not self._rlhf_config.streaming else None ) set_seed(rlhf_config.seed) @@ -75,53 +60,55 @@ def __init__(self, ) ## Load the reward model and tokenizer and define the reward pipeline - self.reward_tokenizer = self.create_tokenizer( - rlhf_config.reward_model_path - ) + self.reward_tokenizer = self.create_tokenizer(rlhf_config.reward_model_path) self.reward_dataset = self.create_dataset(self.reward_tokenizer) reward_model_path = rlhf_config.reward_model_path try: # If there is a trained peft adapter in the hub, load its config. - remote_adapter_config_reward = hf_hub_download(reward_model_path, "adapter_config.json") + remote_adapter_config_reward = hf_hub_download( + reward_model_path, "adapter_config.json" + ) except: remote_adapter_config_reward = None - - local_adapter_present_reward = os.path.exists( + local_adapter_present_reward = os.path.exists( os.path.join(reward_model_path, "adapter_config.json") ) # # Load the trained peft adapter config if local_adapter_present_reward: - trained_adapter_config_reward = PeftConfig.from_pretrained(reward_model_path) + trained_adapter_config_reward = PeftConfig.from_pretrained( + reward_model_path + ) else: - trained_adapter_config = PeftConfig.from_pretrained(remote_adapter_config_reward) + trained_adapter_config = PeftConfig.from_pretrained( + remote_adapter_config_reward + ) ## Load the pretrained base model pretrained_kwargs_reward = { "num_labels": 1, - "load_in_8bit": False, #True, + "load_in_8bit": False, # True, "device_map": {"": Accelerator().local_process_index}, - } # TODO: ADD + } # TODO: ADD pretrained_model_reward = AutoModelForSequenceClassification.from_pretrained( trained_adapter_config_reward.base_model_name_or_path, - **pretrained_kwargs_reward + **pretrained_kwargs_reward, ) ## TODO: LOAD MERGED BASE MODEL FROM STEP 2 # Load the Peft model by combing the base model with the trained adapter - reward_model = PeftModel.from_pretrained(pretrained_model_reward, reward_model_path, is_trainable=False) # TODO: fix this. This should not be trainable. + reward_model = PeftModel.from_pretrained( + pretrained_model_reward, reward_model_path, is_trainable=False + ) # TODO: fix this. This should not be trainable. self.reward_model = reward_model.merge_and_unload() - #pretrained_model.print_trainable_parameters() + # pretrained_model.print_trainable_parameters() print("\nTrained peft adapter loaded for reward model\n") # have to specify the pad_token_id or will lead to error: "Cannot handle batch sizes > 1 if no padding token is defined" # see https://stackoverflow.com/questions/68084302/assertionerror-cannot-handle-batch-sizes-1-if-no-padding-token-is-defined self.reward_model.config.pad_token_id = self.reward_tokenizer.pad_token_id - - - self.reward_kwargs = { "top_k": None, @@ -145,74 +132,78 @@ def __init__(self, self.base_dataset = self.create_dataset(self.base_tokenizer) pretrained_model_name_or_path = rlhf_config.base_model_path - # #NOTE: TODO: peft config will be directly inferred from the pre-trained model. rlhf_config.lora_config_rl will be ignored in previous implementation. Do we want to use it, in the flow of using merged model as base model and then add peft adapter again?? + # #NOTE: TODO: peft config will be directly inferred from the pre-trained model. rlhf_config.lora_config_rl will be ignored in previous implementation. Do we want to use it, in the flow of using merged model as base model and then add peft adapter again?? pretrained_kwargs = { "load_in_8bit": rlhf_config.load_in_8bit, "device_map": {"": Accelerator().local_process_index}, } - assert isinstance(pretrained_model_name_or_path, str), "The `pretrained_model_path` should be a string." + assert isinstance( + pretrained_model_name_or_path, str + ), "The `pretrained_model_path` should be a string." try: # If there is a trained peft adapter in the hub, load its config. - remote_adapter_config = hf_hub_download(pretrained_model_name_or_path, "adapter_config.json") + remote_adapter_config = hf_hub_download( + pretrained_model_name_or_path, "adapter_config.json" + ) except: remote_adapter_config = None - - local_adapter_present = os.path.exists( + local_adapter_present = os.path.exists( os.path.join(pretrained_model_name_or_path, "adapter_config.json") ) # # Load the trained peft adapter config if local_adapter_present: - trained_adapter_config = PeftConfig.from_pretrained(pretrained_model_name_or_path) + trained_adapter_config = PeftConfig.from_pretrained( + pretrained_model_name_or_path + ) else: trained_adapter_config = PeftConfig.from_pretrained(remote_adapter_config) # # Load the pretrained base model pretrained_model = AutoModelForCausalLM.from_pretrained( - trained_adapter_config.base_model_name_or_path, - **pretrained_kwargs + trained_adapter_config.base_model_name_or_path, **pretrained_kwargs ) # Load the Peft model by combing the base model with the trained adapter - is_trainable = True # TODO: If following merge+train new adapter flow. Below should not be trainable! - pretrained_model = PeftModel.from_pretrained(pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable) + is_trainable = True # TODO: If following merge+train new adapter flow. Below should not be trainable! + pretrained_model = PeftModel.from_pretrained( + pretrained_model, pretrained_model_name_or_path, is_trainable=is_trainable + ) - #pretrained_model.print_trainable_parameters() + # pretrained_model.print_trainable_parameters() print("\nTrained peft adapter loaded for policy model\n") # Alternatively, load a peft model from a local path. See https://huggingface.co/docs/peft/quicktour. # TODO: DELETE. doesn't work # peft_model = AutoPeftModelForCausalLM.from_pretrained(pretrained_model_name_or_path) - # Add value head to the pretrained peft model to create a policy network. if isinstance(pretrained_model, PeftModel): is_peft_model = True - trl_model_args = {} # args for the value head + trl_model_args = {} # args for the value head # TODO: weights of v_head initialized using v_head_init_strategy="random" by default. trl also suports initialization using "norm". model = AutoModelForCausalLMWithValueHead(pretrained_model, **trl_model_args) # TODO: 1 VALUE HEAD REQURIES GRAD = FALSE AND NOT IN CUDA. CHECK IF BELOW CODE FIX THIS. 2. PEFTMODEL PRINT TRAINABLE PARAMETERS REUTRNS ... AND NONE - # For back compatibility for class AutoModelForCausalLMWithValueHead. is_peft_model needs to be specified or calling model.state_dict() will fail. model.is_peft_model = is_peft_model # For back compatibility model.is_sequential_parallel = True model.current_device = Accelerator().local_process_index - reward_adapter = None # TODO: Consider adding reward adapter here? + reward_adapter = None # TODO: Consider adding reward adapter here? if is_peft_model and reward_adapter is not None: model.add_and_load_reward_modeling_adapter(reward_adapter) model.supports_rm_adapter = True else: model.supports_rm_adapter = False - - # Adding v_head to device and register hook. See AutoModelForCausalLMWithValueHead.post_init(). + # Adding v_head to device and register hook. See AutoModelForCausalLMWithValueHead.post_init(). # TODO: is register_forward_hook necessary? outputs should be already on cuda first_device = list(set(model.pretrained_model.hf_device_map.values()))[0] model.v_head = model.v_head.to(first_device) + def set_device_hook(module, input, outputs): new_output = () for output in outputs: @@ -221,9 +212,10 @@ def set_device_hook(module, input, outputs): else: new_output += (output,) return new_output + model.register_forward_hook(set_device_hook) self.base_model = model - #breakpoint() + # breakpoint() # self.base_model = AutoModelForCausalLMWithValueHead.from_pretrained( # rlhf_config.base_model_path, # load_in_8bit=rlhf_config.load_in_8bit, @@ -288,19 +280,13 @@ def create_dataset(self, tokenizer): """ args = self._rlhf_config if args.dataset_type == "local_db": - qa_database = QuestionAnswerDatabase( - db_file=self._rlhf_config.dataset_name - ) + qa_database = QuestionAnswerDatabase(db_file=self._rlhf_config.dataset_name) my_data_pd = qa_database.retrieve_all_question_answers_as_pandas() - my_data_pd = my_data_pd[ - my_data_pd[QA_CSV_HEADER_VOTE_STATUS] == "up" - ] + my_data_pd = my_data_pd[my_data_pd[QA_CSV_HEADER_VOTE_STATUS] == "up"] my_data_pd = my_data_pd[ [QA_CSV_HEADER_ID, QA_CSV_HEADER_QUESTION, QA_CSV_HEADER_ANSWER] ] - print( - "My local database has {} samples".format(my_data_pd.shape[0]) - ) + print("My local database has {} samples".format(my_data_pd.shape[0])) dataset = Dataset.from_dict(my_data_pd) elif args.dataset_type == "local_csv": ## TODO: test dataset = load_dataset("csv", data_files=args.dataset_name) @@ -338,9 +324,7 @@ def preprocess_function(examples): query = "Question: " + question + "\n\nAnswer: " tokenized_question = tokenizer(query, truncation=True) new_examples["query"].append(query) - new_examples["input_ids"].append( - tokenized_question["input_ids"] - ) + new_examples["input_ids"].append(tokenized_question["input_ids"]) return new_examples dataset = dataset.map( @@ -388,20 +372,13 @@ def train(self, save_checkpoints_path=None): response_tensors, skip_special_tokens=True ) # compute rewards and run PPO - texts = [ - q + r - for q, r in zip(batch["query"], batch[QA_CSV_HEADER_ANSWER]) - ] + texts = [q + r for q, r in zip(batch["query"], batch[QA_CSV_HEADER_ANSWER])] pipe_outputs = self.reward_pipe(texts, **self.reward_kwargs) rewards = [ - torch.tensor( - output[0]["score"] - self._rlhf_config.reward_baseline - ) + torch.tensor(output[0]["score"] - self._rlhf_config.reward_baseline) for output in pipe_outputs ] - stats = self.ppo_trainer.step( - question_tensors, response_tensors, rewards - ) + stats = self.ppo_trainer.step(question_tensors, response_tensors, rewards) ## log stats self.log_stats_to_json(epoch=epoch, stats=stats, reward=rewards[0]) @@ -422,9 +399,7 @@ def train(self, save_checkpoints_path=None): ) self.ppo_trainer.save_pretrained(save_checkpoints_path) - def log_stats_to_json( - self, epoch, stats, reward, filename="ppo_log_stats.json" - ): + def log_stats_to_json(self, epoch, stats, reward, filename="ppo_log_stats.json"): """ Log the PPO stats to a json file. Args: @@ -480,7 +455,7 @@ def train_and_save(self, output_path=None): """ start_event = RLStartEvent( start_time=time.time(), date_time=datetime.utcfromtimestamp(time.time()) - ) + ) self._telemetry.capture(start_event) self.train(save_checkpoints_path=output_path) self.save(output_path) diff --git a/pykoi/rlhf/rw_finetuning.py b/pykoi/rlhf/rw_finetuning.py index ecaba1e..92ba4c6 100644 --- a/pykoi/rlhf/rw_finetuning.py +++ b/pykoi/rlhf/rw_finetuning.py @@ -1,37 +1,26 @@ """reward model finetuning.""" import os import time - -from datetime import datetime from dataclasses import dataclass +from datetime import datetime from typing import Any, Dict, List, Optional import evaluate import numpy as np import torch - from datasets import Dataset, load_dataset from peft import get_peft_model -from transformers import ( - AutoModelForSequenceClassification, - AutoTokenizer, - Trainer, - TrainingArguments, -) +from transformers import (AutoModelForSequenceClassification, AutoTokenizer, + Trainer, TrainingArguments) -from pykoi.rlhf.config import RLHFConfig -from pykoi.chat.db.constants import ( - RANKING_CSV_HEADER_ID, - RANKING_CSV_HEADER_QUESTION, - RANKING_CSV_HEADER_LOW_RANKING_ANSWER, - RANKING_CSV_HEADER_UP_RANKING_ANSWER, -) +from pykoi.chat.db.constants import (RANKING_CSV_HEADER_ID, + RANKING_CSV_HEADER_LOW_RANKING_ANSWER, + RANKING_CSV_HEADER_QUESTION, + RANKING_CSV_HEADER_UP_RANKING_ANSWER) from pykoi.chat.db.ranking_database import RankingDatabase +from pykoi.rlhf.config import RLHFConfig +from pykoi.telemetry.events import RWStartEvent, RWStopEvent from pykoi.telemetry.telemetry import Telemetry -from pykoi.telemetry.events import ( - RWStartEvent, - RWStopEvent, -) @dataclass @@ -70,9 +59,7 @@ def extract_and_pad(key_ids, key_mask): class RewardFinetuning(Trainer): - def __init__(self, - rlhf_config: RLHFConfig, - enable_telemetry: bool = True) -> None: + def __init__(self, rlhf_config: RLHFConfig, enable_telemetry: bool = True) -> None: self._telemetry = Telemetry(enable_telemetry) self._rlhf_config = rlhf_config self.args = TrainingArguments( @@ -95,16 +82,14 @@ def __init__(self, logging_steps=rlhf_config.logging_steps, # optim=rlhf_config.optim, # lr_scheduler_type=rlhf_config.lr_scheduler_type_rw, - adam_epsilon = 1e-7 # Language model is loaded in torch.float16. Adam optimizer adds epsilon to avoid zero denominator. - # NOTE: torch.float 16 will round any number smaller than 6e-8 to 0. Do not change episolon to smaller than 6e-8. + adam_epsilon=1e-7 # Language model is loaded in torch.float16. Adam optimizer adds epsilon to avoid zero denominator. + # NOTE: torch.float 16 will round any number smaller than 6e-8 to 0. Do not change episolon to smaller than 6e-8. ) self.torch_dtype = torch.bfloat16 if rlhf_config.bf16 else torch.float16 # self.torch_dtype = torch.bfloat16 if bf16 else (torch.float16 if fp16 else torch.float32) # Load the tokenizer and the model - self.tokenizer = AutoTokenizer.from_pretrained( - rlhf_config.reward_model_path - ) + self.tokenizer = AutoTokenizer.from_pretrained(rlhf_config.reward_model_path) self.tokenizer.pad_token = self.tokenizer.eos_token self.base_model = AutoModelForSequenceClassification.from_pretrained( @@ -114,16 +99,12 @@ def __init__(self, load_in_8bit=rlhf_config.load_in_8bit, device_map=rlhf_config.device_map, ) - self.model = get_peft_model( - self.base_model, rlhf_config.lora_config_reward - ) + self.model = get_peft_model(self.base_model, rlhf_config.lora_config_reward) self.model.print_trainable_parameters() self.model.config.pad_token_id = self.tokenizer.eos_token_id self.model.config.use_cache = not rlhf_config.gradient_checkpointing self.num_proc = ( - self._rlhf_config.num_workers - if not self._rlhf_config.streaming - else None + self._rlhf_config.num_workers if not self._rlhf_config.streaming else None ) self.dataset = self.create_datasets() @@ -191,9 +172,7 @@ def create_datasets(self): # based on dataset_type (e.g. "huggingface", "csv", etc.), load the data if self._rlhf_config.dataset_type == "local_db": ranking_database = RankingDatabase() - my_data_pd = ( - ranking_database.retrieve_all_question_answers_as_pandas() - ) + my_data_pd = ranking_database.retrieve_all_question_answers_as_pandas() my_data_pd = my_data_pd[ [ RANKING_CSV_HEADER_ID, @@ -219,9 +198,7 @@ def create_datasets(self): # streaming=self._rlhf_config.streaming, # ) elif self._rlhf_config.dataset_type == "csv": - dataset = load_dataset( - "csv", data_files=self._rlhf_config.dataset_name - ) + dataset = load_dataset("csv", data_files=self._rlhf_config.dataset_name) else: raise FileNotFoundError( "No (supported) data files or dataset script found" @@ -235,8 +212,7 @@ def create_datasets(self): num_proc=self.num_proc, ) dataset = dataset.filter( - lambda x: len(x["input_ids_x"]) - <= self._rlhf_config.max_seq_length_reward + lambda x: len(x["input_ids_x"]) <= self._rlhf_config.max_seq_length_reward and len(x["input_ids_y"]) <= self._rlhf_config.max_seq_length_reward ) @@ -318,7 +294,7 @@ def train_and_save(self, output_path=None): """ start_event = RWStartEvent( start_time=time.time(), date_time=datetime.utcfromtimestamp(time.time()) - ) + ) self._telemetry.capture(start_event) self.train() self.save(output_path) diff --git a/pykoi/rlhf/supervised_finetuning.py b/pykoi/rlhf/supervised_finetuning.py index fd98d46..7a58a9f 100644 --- a/pykoi/rlhf/supervised_finetuning.py +++ b/pykoi/rlhf/supervised_finetuning.py @@ -7,21 +7,15 @@ import torch from datasets import Dataset, load_dataset from peft import PeftConfig, PeftModel -from transformers import ( - AutoModelForCausalLM, - AutoModelForSequenceClassification, - AutoTokenizer, - TrainingArguments, -) +from transformers import (AutoModelForCausalLM, + AutoModelForSequenceClassification, AutoTokenizer, + TrainingArguments) from trl import SFTTrainer from trl.trainer.utils import ConstantLengthDataset -from pykoi.chat.db.constants import ( - QA_CSV_HEADER_ANSWER, - QA_CSV_HEADER_ID, - QA_CSV_HEADER_QUESTION, - QA_CSV_HEADER_VOTE_STATUS, -) +from pykoi.chat.db.constants import (QA_CSV_HEADER_ANSWER, QA_CSV_HEADER_ID, + QA_CSV_HEADER_QUESTION, + QA_CSV_HEADER_VOTE_STATUS) from pykoi.chat.db.qa_database import QuestionAnswerDatabase from pykoi.rlhf.config import RLHFConfig from pykoi.telemetry.events import SFTStartEvent, SFTStopEvent diff --git a/pykoi/telemetry/events.py b/pykoi/telemetry/events.py index 53b9bde..f381814 100644 --- a/pykoi/telemetry/events.py +++ b/pykoi/telemetry/events.py @@ -1,12 +1,12 @@ """This module contains telemetry events for PyKoi.""" import os -from dataclasses import asdict, dataclass -from typing import ClassVar, Dict, Any import platform -import requests -import pynvml +from dataclasses import asdict, dataclass +from typing import Any, ClassVar, Dict +import pynvml +import requests try: pynvml.nvmlInit() @@ -96,6 +96,7 @@ class AppStartEvent(TelemetryEvent): system (str): The name of the operating system. release (str): The release version of the operating system. """ + name: ClassVar[str] = "app_start" start_time: float date_time: str @@ -116,6 +117,7 @@ class AppStopEvent(TelemetryEvent): date_time (str): The date and time when the application stopped. duration (str): The duration of the application. """ + name: ClassVar[str] = "app_end" end_time: float date_time: str @@ -136,6 +138,7 @@ class SFTStartEvent(TelemetryEvent): system (str): The name of the operating system. release (str): The release version of the operating system. """ + name: ClassVar[str] = "sft_start" start_time: float date_time: str @@ -156,6 +159,7 @@ class SFTStopEvent(TelemetryEvent): date_time (str): The date and time when the supervised finetuning stopped. duration (str): The duration of the supervised finetuning. """ + name: ClassVar[str] = "sft_end" end_time: float date_time: str @@ -176,6 +180,7 @@ class RWStartEvent(TelemetryEvent): system (str): The name of the operating system. release (str): The release version of the operating system. """ + name: ClassVar[str] = "rw_start" start_time: float date_time: str @@ -196,6 +201,7 @@ class RWStopEvent(TelemetryEvent): date_time (str): The date and time when the reward model finetuning stopped. duration (str): The duration of the reward model finetuning. """ + name: ClassVar[str] = "rw_end" end_time: float date_time: str @@ -216,6 +222,7 @@ class RLStartEvent(TelemetryEvent): system (str): The name of the operating system. release (str): The release version of the operating system. """ + name: ClassVar[str] = "rl_start" start_time: float date_time: str @@ -236,6 +243,7 @@ class RLStopEvent(TelemetryEvent): date_time (str): The date and time when the reinforcement learning finetuning stopped. duration (str): The duration of the reinforcement learning finetuning. """ + name: ClassVar[str] = "rl_end" end_time: float date_time: str diff --git a/pykoi/telemetry/telemetry.py b/pykoi/telemetry/telemetry.py index a0fe39a..6cc0b72 100644 --- a/pykoi/telemetry/telemetry.py +++ b/pykoi/telemetry/telemetry.py @@ -1,17 +1,16 @@ """This module contains telemetry for PyKoi.""" +import logging import os import sys import uuid -import logging - -from typing import Dict, Any from pathlib import Path +from typing import Any, Dict + from posthog import Posthog import pykoi from pykoi.telemetry.events import TelemetryEvent - logger = logging.getLogger(__name__)